Subject: Re: [xsl] Merging elements From: Andrew Welch <andrew.j.welch@xxxxxxxxx> Date: Thu, 27 Oct 2011 10:18:54 +0100 |
> I've been looking at the problem for too long and have a horribly complex set of grouping statements that applied in a multiple mode stylesheet. I'm convinced that there's a simpler way to do this but I think that I can't see the wood for the trees. Does anyone have an elegant way to do this? > Use 'sibling recursion', similar to the identity template but it traverses the following-sibling axis... then add a specific template for the span which does the grouping (by checking if the immediate following sibling element is also a span) -- Andrew Welch http://andrewjwelch.com
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Merging elements, Nic Gibson | Thread | Re: [xsl] Merging elements, Nic Gibson |
[xsl] Merging elements, Nic Gibson | Date | Re: [xsl] Merging elements, Nic Gibson |
Month |