xsl-list
[Top] [All Lists]

RE: match nodes based on given path

2003-04-11 04:44:23

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(_dot_)H(_dot_)Kay(_at_)ntlworld(_dot_)com
work: Michael(_dot_)Kay(_at_)softwareag(_dot_)com 


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