Subject: RE: [xsl] First occurrence of glossary term in whole document From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Wed, 30 Jul 2008 18:12:43 -0400 |
Ooops, that isn't true. I can't pass the result document down because the variable isn't updated until after the full file is processed thereby allowing multiple references to creep in.
I'll have another go tomorrow using Liam's suggestion. Thanks. R
(in your data) <glossterm>ADSL</glossterm>...<glossterm>ADSL</glossterm>...
<xsl:template match="glossterm"> <xsl:if test="generate-id()=generate-id(key('glossterm-by-value',.)[1])"> ... only the first glossterm in the document will pass the test ... </xsl:if> </xsl:template>
Cheers, Wendell
====================================================================== 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] First occurrence of gloss, Marroc | Thread | [xsl] Grouping Problem - XML Repeat, Brent Solly |
RE: [xsl] How to allow element to a, mlcook | Date | Re: [xsl] How to allow element to a, Wendell Piez |
Month |