Subject: RE: [xsl] How to use an xsl:variable in select= of another xsl:variable: SOLVED From: Rene de Vries <RdVries@xxxxxxxxxxx> Date: Wed, 25 Apr 2001 15:54:44 +0200 |
Thanks Mike, <xsl:value-of select="document('Descriptions.xml')//Descriptions/*[name()=$ancestor]/*[name()=$naam]/DescriptionShort"/> did the trick!!!! Greetings Rene { @ @ } ^ \__/ "You don't need eyes to see, you need vision!" -----Oorspronkelijk bericht----- Van: Michael Kay [SMTP:mhkay@xxxxxxxxxxxx] Verzonden: woensdag 25 april 2001 12:47 Aan: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Onderwerp: RE: [xsl] 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 XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] hard/soft return problem , Michael Kay | Thread | [xsl] conditionals not allowed at t, Mark Nahabedian |
[xsl] hard/soft return problem with, Keddy, Paul | Date | [xsl] conditionals not allowed at t, Mark Nahabedian |
Month |