Michal Kay wrote:
This prevents it working in a pipelined environment where
the result tree that's output from the XSLT transformation is then input (in
tree form) to another process. An example of such a pipeline is the Netscape
browser, which is why d-o-e doesn't work on Netscape or Mozilla browsers.
This is indeed a very good reason. Thanks for pointing that out.
In XSLT 2.0 this problem is easily solved using <xsl:for-each-group
group-adjacent="node-name()">. It's not all that hard in 1.0 either. My
preferred approach is sibling recursion:
And thanks so much for the sample of sibling recursion. This does
indeed look much more convincing. I'll work on understandíng the
details ...
--
Ferdinand Soethe
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--