|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: dynamic variable names
Sam Saha wrote:
Hi, How do I construct the name of a variable dynamically. You can't do that in XSL.What you can do is: <xsl:variable name="myVar">
<xsl:choose>
<xsl:when test="$something='foo'">
<xsl:value-of select="$something"/>
</
<xsl:when test="$something-else='boo'">
<xsl:value-of select="$something-else"/>
</
<xsl:otherwise>
<xsl:value-of select="$default"/>
</
</
</make sense? best, -Rob
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








