|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] variable value in "select" attribute
I need to insert a variable value in the middle of a "select" string. I
have variables $day1date, $day2date, etc...and I am passing a parameter $n
to a template to define the numeric portion of the variable name. I want to
be able to fill in the numeric value on the fly like this:
<xsl:value-of select="\$day$ndate"/>
I know the syntax is wrong. I need "$day" to be treated as a string, $n to
be treated as a number, and "date" to be treated as a string. I cannot use
the concat() function, because <xsl:value-of
select="concat('$day',$n,'date')/> simply returns "$day1date". I need it to
return the VALUE of $day1date.
Any ideas?
Thanks,
Brian
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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








