|
Subject: RE: [xsl] How to use an xsl:variable in select= of another xsl:variable From: "Michael Kay" <mhkay@xxxxxxxxxxxx> Date: Wed, 25 Apr 2001 11:35:09 +0100 |
> 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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] How to use an xsl:variabl, cutlass | Thread | [xsl] Genetic algorithm in XSL: Sne, Juan Julian Merelo G |
| Re: [xsl] regular expressions ?, Goetz Bock | Date | Re: [xsl] JAXP/TrAX: how to set par, Lars Marius Garshol |
| Month |