Your solution to grouping where an element overlaps two groups is
impressive, but how would you handle the case where a text node (with
two newlines) overlaps three groups? It seems like the looping concept
breaks down
maybe our posts crossed but i think the version I posted yesterday works
in that case doesn't it? My test case (in the post) had two newlines:
<page>
<bodytext>This is the <link url="zzz">link</link> xxx <---1---
This is another line <---2---
and a <link url="zzz">link2</link> 2nd
and a third</bodytext>
</page>
David
________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list