Subject: Re: [xsl] "grouping" footnote numbers From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Mon, 17 Oct 2011 15:41:51 -0400 |
xref[count(.|key('fn',@href)[1])=1]
Cheers, Wendell
So that's what I've got now:
<xsl:key name="fn" match="xref" use="@href"/> ... <xsl:template match="xref"> <a href="{@href}"> <sup> <xsl:for-each-group select="key('fn', @href)" group-by="@href"> <xsl:number level="any" count="xref[count(.|key('fn',@href)[1])=1]"/> </xsl:for-each-group> </sup> </a> </xsl:template>
I hope my users will be impressed (but since they view most of what we do as magic anyway, they probably won't be). Thank you all for your help.
-- ====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] "grouping" footnote numbe, Emma Burrows | Thread | Re: [xsl] "grouping" footnote numbe, David Carlisle |
Re: [xsl] Group and sort nodes by a, Jens Burkhardt | Date | [xsl] required parameter, Merrilees, David |
Month |