RE: [xsl] match nodes based on given path

Subject: RE: [xsl] match nodes based on given path
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Fri, 11 Apr 2003 12:44:23 +0100
> 
> Now I am generating a stylesheet which looks like:
> 
> <xsl:key name="indyLink" match="/root/node/foo" use="generate-id()"/>
> 
> <xsl:template match="*[generate-id() =
generate-id(key('indyLink',generate-id()))]">
>   <xsl:call-template name="IndyLink"/>
>   <xsl:apply-imports/>
> </xsl:template>

I think your match pattern is precisely equivalent to:

<xsl:template match="/root/node/foo">

Which probably means you were trying to test for some other condition,
but I've no idea what.

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