|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: variable in xsl
> <xsl:variable name="mylang" select="'de'"/>
> <xsl:variable name="mycurr" select="'euro'"/>
>
> document('../prototype/lang/*[name()=$mylang]/xml/*[name()=$my
> curr]/structure.xml')
>
> I hope this helps.
Ken, you missed that it's a URI (string) not a path expression. You need
to build it using concat():
document(concat('../prototype/lang/', $mylang, '/xml/', ...etc))
Michael Kay
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








