RE: sorting and parameters

Subject: RE: sorting and parameters
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Tue, 18 Jan 2000 10:11:04 -0000
> > In response to this problem and others of the same ilk, the next version
of
> > SAXON will contain an extension function evaluate() which takes as its
> > argument an XPath expression in the form of a string, and returns the
result
> > of evaluating that expression.
> 
> Will this do generalized variable interpolation of (string) variables
> within a path?  select="$nodes/some/$variable/child"?
> 
It won't do it, but it will enable it, e.g. (if this is what you meant):

<xsl:variable name="path" select="concat('$nodes/some/', $variable,
'/child')"/>
<xsl:variable name="path-result" select="sxf:evaluate($path)"/>

Mike 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread