|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: How to use an xsl:variable in select= of another x
> and I want to use these as follows:
>
> <xsl:variable name="ShrtDescr"
> select="document('Descriptions.xml')/Descriptions/$ancestor/$n
aam/DescriptionShort" />
Frequently Given Answer number 3: you can't use variables to hold bits of an
XPath expression. They aren't macros.
In many cases you can get round it with *[name()=$naam]
In more complex cases (perhaps here) you need the xx:evaluate() extension
function.
Mike Kay
Software AG
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








