Subject: [xsl] XSLT2: Keys vs. xsl:choose to distinguish groups From: Yves Forkl <Y.Forkl@xxxxxx> Date: Thu, 15 Mar 2007 13:31:22 +0100 |
<A/> <x/> <B/> <x/> <y/> <C/> <x/>
<part_A> <item_specific_to_A/> <A/> <x/> </part_A> <part_B> <B/> <x/> <item_specific_to_B/> <y/> </part_B> <part_C> <C/> <item_specific_to_C/> <x/> </part_C>
<xsl:for-each-group select="*" group-starting-with="A|B|C"> <xsl:choose>
<xsl:when test="current-group()[1] = A"> <part_A> <item_specific_to_A/> <xsl:apply-templates select="current-group()"/> </part_A> </xsl:when>
</xsl:choose> </xsl:for-each-group>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Subtree Transformation, Abel Braaksma | Thread | Re: [xsl] XSLT2: Keys vs. xsl:choos, David Carlisle |
SV: Re: [xsl] fo spaces, Mati Hadi | Date | Re: [xsl] XSLT2: Keys vs. xsl:choos, David Carlisle |
Month |