Subject: Re: [xsl] Grouping: maximum of n groups From: Michael Kay <mike@xxxxxxxxxxxx> Date: Fri, 14 Sep 2012 15:15:34 +0100 |
Michael Kay Saxonica
Hi everybody,
is there a way to limit the number of groups that are constructed by <xsl:for-each-group>?
XML: <line> v <tab /> w <tab /> x <tab /> y <tab/> z <line>
(v, w, x, y, z being mixed data)
In the example above, <xsl:for-each-group select="node()" group-ending-with="tab"> will find 5 groups.
Let's say I want no more than 3 groups, where the third group contains "all the rest": (1) v <tab /> (2) w <tab /> (3) x <tab /> y <tab/> z
To be more precise: Groups 1 and 2 shall be processed on their own, Groups 3 and all following groups shall go together in further processing.
Thanks for your answers, Norbert
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Grouping: maximum of n groups, Norbert Heidbrink | Thread | Re: [xsl] Grouping: maximum of n gr, Wendell Piez |
Re: [xsl] Grouping: Number of group, Michael Kay | Date | [xsl] XSL-FO preformatted text issu, Steve.Wisniewski |
Month |