Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: build parameter as string

From: "news.microsoft.com" <djo267 at hotmail dot com>
To: NULL
Date: 12/3/2006 3:02:00 AM

Without sample input XML and output text, it is difficult to figure out what 
you are trying to do, but it looks like you are just trying to do this:
<xsl:for-each select="/root[@Complete='true' and 
@Supplier=$supplier_param]/mynode">
'mycode
</xsl:for each>


dan


"Ghena" <lastminutesud@g...> wrote in message 
news:1161595565.058050.94810@i......
>I need to build a parameter depending on a xsl:param
>
> <xsl:param name="supplier_param" />
>
> <xsl:variable name="test">
> <xsl:choose>
> <xsl:when test="$supplier_param">
> Complete='true' and Supplier='<xsl:value-of select="$supplier_param"
> />'
> </xsl:when>
> <xsl:otherwise>
> Complete='true'
> </xsl:otherwise>
> </xsl:choose>
> </xsl:variable>
>
>
> <--then i pass the string as a parameter -->
>
>
> <xsl:for-each select="/root[$test]/mynode">
> 'mycode
> </xsl:for each>
>
> but the for-each filter is not applyed.
>
> I tryed also with:
>
> <xsl:for-each select="/root[string($test)]/mynode">
> 'mycode
> </xsl:for each>
>
> with the same results.
> 




transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent