xsl-list
[Top] [All Lists]

RE: variable in xsl

2003-09-03 06:55:53
<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



<Prev in Thread] Current Thread [Next in Thread>