I suppose this is probably more helpful...
If there are two newlines in a single text node the posted soln doesn't
work as it just does a single substring-before/after, you need to
recurse to find them all, but within a single text node you just have a
plain string with no elements in the way so you can handle that easily
without having to worry about elements.
David
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list