You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Mark Imel <mi...@DataChannel.com> on 2000/03/23 19:26:29 UTC
Using params or variables in a xsl:for-each
I've run into this problem in a variety of areas, but i'll focus on
<xsl:for-each />
<xsl:param name="foo" select="@title" />
<xsl:for-each select="$foo">
<xsl:value-of select="@title" />
</xsl:for-each>
In the above example the only thing that executes is the paramater
replacement.
I would hope the the <xsl:for-each> statement would first resolve into:
<xsl:for-each select="@title">
Instead, the execution of the ElemForEach's xpath statement results in the
variable/param replacement of $foo.
To recap,
I need select statments to first resolve the parameter, then to execute the
xpath query.
Thanks
------------------------------------------------------------
Mark Imel DataChannel
Software Engineer 600 108th Ave NE, Suite 900
mimel@datachannel.com Bellevue, WA 98004
(425) 974-4173 http://www.datachannel.com
------------------------------------------------------------