Subject: Re: [xsl] Using keys in templates From: "M. David Peterson" <m.david@xxxxxxxxxx> Date: Tue, 13 Jul 2004 09:23:02 -0600 |
<xsl:template match="module"> <xsl:apply-templates select="dist[generate-id(.) = generate-id(key('dists', @name))]" /> </xsl:template>
<xsl:template match="dist"> <!-- this template only processed for the first dist element with each particular name --> ... </xsl:template>
"Locating which template to use to process a node takes time, so you should try to apply templates to as small a set as possible rather than trying to find a template for every node, but only doing something with some of them."
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Using keys in templates, Jeni Tennison | Thread | Re: [xsl] Using keys in templates, David Carlisle |
RE: [xsl] implement attribute inher, Michael Kay | Date | Re: [xsl] Speeding up processing (w, Wendell Piez |
Month |