RE: [xsl] xsl:key within <xsl:for-each select="xalan:nodeset...

Subject: RE: [xsl] xsl:key within <xsl:for-each select="xalan:nodeset...
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Thu, 8 Aug 2002 14:59:48 +0100
> 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@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 


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


Current Thread