[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: for-each-group
On 28.03.2018 18:22, Rick Quatro rick@xxxxxxxxxxxxxx wrote:
OK, I think I get it. You are grouping on a string derived from the node name instead of the node itself. This doesn't work for my general intent, because the other elements may not all be the same. For example, I might have this: <xsl:template match="step"> <xsl:copy> <xsl:for-each-group select="*" group-adjacent="if (not(boolean(self::figure))) then true() else (position() - 1 idiv 1)"> <group> <xsl:apply-templates select="current-group()"/> </group> </xsl:for-each-group> </xsl:copy> </xsl:template> might do
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|