This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Template Select using a param
- To: xsl-list at mulberrytech dot com
- Subject: Re: Template Select using a param
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Thu, 9 Mar 2000 13:17:35 GMT
- References: <38C7A15B.C2DFE7F@micromuse.com>
- Reply-To: xsl-list at mulberrytech dot com
> I had hoped to use:
> <xsl:value-of select="<xsl:value-of select="$path"/>"/>
well that wouldn't even reach the xsl system as it is not well formed
XML and would be rejected by the XMl parser.
You could try
<xsl:value-of select="{$path}"/>"
{} syntax being the replacement for value-of in attributes.
But it doesn't work as value-of (or {} ) return a _string_ not an
expression.
saxon has an extension function to evaluate an expression
as a string, but do you need that here?
why can't you make the parameter the node list selected rather than the
path for selecting it:
<xsl:param name="path" select="
/test/ROWSET/ROW[@*[name(.)=current()/@id]]/*[name(.)=current()]"/>
(or something like that)
<xsl:value-of select="$path"/>
David
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list