This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: xsl:key within <xsl:for-each select="xalan:nodeset...
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Thu, 8 Aug 2002 14:59:48 +0100
- Subject: RE: [xsl] xsl:key within <xsl:for-each select="xalan:nodeset...
- Reply-to: xsl-list at lists dot mulberrytech dot com
> I am tryin to call a xsl:key within
> <xsl:for-each select="xalan:nodeset($myVar)/myElement">
>
> like..
> <xsl:for-each select="xalan:nodeset($myVar)/myElement">
> <xsl:value-of select="key('names',nameid)/name"/>
> </xsl:for-each>
>
> The value-of select produces no result.
The key() function searches the document containing the context node; in
this case it searches the temporary tree $myVar.
Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list