xsl-list
[Top] [All Lists]

RE: [xsl] Rewrite xpath to not use variable references

2008-02-07 15:51:28
Thanks! I had tried using it but must have had something else wrong.

Ken>The XSLT current() function points to the current node at the start
of the XPath expression.

Ken>     <xsl:template match="w">
Ken>         Value: <xsl:value-of select="key('fruit', @x)/b/
Ken>         c[(_at_)d = current()/@y and .=current()]/../c[(_at_)d eq
current()/@z]"/>.
Ken>     </xsl:template>

    

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>