Subject: Re: [xsl] XSLT2: Keys vs. xsl:choose to distinguish groups From: Yves Forkl <Y.Forkl@xxxxxx> Date: Tue, 20 Mar 2007 10:40:03 +0100 |
Why not use apply-templates to despatch based on the first member of the group:
<xsl:for-each-group.... <xsl:apply-templates select="current-group()[1]" mode="process-group"/>
<xsl:template match="A" mode="process-group"> <xsl:for-each select="current-group()"> ...
> key returns a sequence of nodes you still need to use a choose (or > apply templates) to cause any action to be taken with those nodes.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] XSLT2: Keys vs. xsl:choos, Michael Kay | Thread | [xsl] how to sort a union using num, Andrew S Halper |
RE: [xsl] Flagging records that don, Michael Kay | Date | [xsl] Universally quantified test o, Yves Forkl |
Month |