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: "Selva, Francis" <Francis dot Selva at purchasepro dot com>
- Date: Mon, 1 May 2000 10:39:43 -0700
- Reply-To: xsl-list at mulberrytech dot com
Yes
you can create a variable with condition and use it in a for-each.It should work
without braces.I guess it will throw u an error with braces
Francis
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.