This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: How to use an xsl:variable in select= of another xsl:variable


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]