That's better than mine; I forgot to handle the case where no line-break exists.
BTW, in addition to the xsl-list (which is a great resource for XSLT programming advice), you should be aware of the XSLT FAQ website, which is a collection of the best answers from that list: http://www.dpawson.co.uk/xsl/sect2/sect21.html (It's section 2.1 because Dave has several other groups of FAQs dealing with related topics. Good resource!) ______________________________________ "... Three things see no end: A loop with exit code done wrong, A semaphore untested, And the change that comes along. ..." -- "Threes" Rev 1.1 - Duane Elms / Leslie Fish (http://www.ovff.org/pegasus/songs/threes-rev-11.html)