[Home] [By Thread] [By Date] [Recent Entries]
David Carlisle schrieb:
<xsl:apply-templates select="a"/> Running this against my sample input gives me the same results as with <xsl:for-each-group select="*" group-adjacent="exists(self::b|self::c)"> as far as grouping the "b" and "c" elements is concerned: in the result, "c" follows "b", just as in the input. Looking at the code, I assume what makes the difference is that without xsl:for-each-group, all "b" and "c" elements within their parent element would go into the same container1 instance instead of each "b"/"c" sequence receiving their own container. Am I right? If so, it won't hurt me, as my "b" and "c" elements will always appear before any "d" element, therefore I think can do without xsl:for-each-group. The lesson I learned: The hardest part with XSLT (2.0) is to find its easy solution to your complex problem. ;-) Yves
|

Cart



