This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]