Subject: Re: [xsl] "grouping" footnote numbers From: "Murray McDonald" <m.mcdonald@xxxxxxxxx> Date: Tue, 11 Oct 2011 09:20:51 -0400 |
This should be relatively efficient: <xsl:variable name="unique_hrefs" select="distinct-values(//xref/@href)"/> <xsl:template match="p"> <xsl:element name="{local-name()}"><xsl:apply-templates/></xsl:element> </xsl:template> <xsl:template match="xref"> <a href="{@href}"> <sup> <xsl:value-of select="index-of($unique_hrefs, @href)"/> </sup> </a> </xsl:template>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] "grouping" footnote numbe, David Carlisle | Thread | [xsl] Re: Need XML grep-like tool f, David Sewell |
Re: [xsl] "grouping" footnote numbe, Brandon Ibach | Date | RE: [xsl] "grouping" footnote numbe, Emma Burrows |
Month |