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

Subject: RE: [xsl] Rewrite xpath to not use variable references
From: "Angela Williams" <Angela.Williams@xxxxxxxxxxxxxxxxxx>
Date: Thu, 7 Feb 2008 16:50:51 -0600
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[@d = current()/@y and .=current()]/../c[@d eq
current()/@z]"/>.
Ken>     </xsl:template>

Current Thread