This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Does XSL support an eval?
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: Does XSL support an eval?
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Wed, 3 May 2000 08:58:52 +0100
- Reply-To: xsl-list at mulberrytech dot com
Not in standard XSLT, but the Saxon extension function saxon:evaluate() does
this.
-----Original Message-----
From: JamesW@cardsetc.com.au [mailto:JamesW@cardsetc.com.au]
Sent: 01 May 2000 17:23
To: xsl-list@mulberrytech.com
Subject: Does XSL support an eval?
Folks,
Is there a way in XSL to take an XPath query described in a parameter or
variable, and reference this parameter in the select attribute of say,
xsl:for-each to iterate through the node set described by the query.
ie.
<xsl:variable name="myPath" select="'/my/XPath/@query'"/>
<xsl:for-each select="{$myPath}">
...
</xsl:for-each>
We were under the impression that using the curly braces might achieve this,
but haven't had any luck so far.
Regards,
James W.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list