Subject: Re: [xsl] Split with delimiter and remove duplicate with xsl:for-each group From: Martin Honnen <Martin.Honnen@xxxxxx> Date: Mon, 30 Jun 2008 15:01:09 +0200 |
<xsl:template name="affiliation"> <xsl:for-each-group select=".//Affiliation" group-by="./Author/Affiliation"> <xsl:value-of select="current-grouping-key()"/> <xsl:for-each select="tokenize(., '\[\d+\]')[normalize-space(.)]"> <affil> <xsl:value-of select="normalize-space(current-grouping-key())"/> </affil> </xsl:for-each> </xsl:for-each-group> </xsl:template>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
Martin Honnen http://JavaScript.FAQTs.com/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Split with delimiter and , Deborah Pickett | Thread | [xsl] Cocoon, Andrew Welch |
Re: [xsl] Split with delimiter and , Deborah Pickett | Date | Re: [xsl] Re: OOXML, Dimitre Novatchev |
Month |