<xsl:when test="following-sibling::node()">
That's your problem, when you do a call-template the current node
doesn't change, so you spin here.
as far as I can see without running it everything is based on your
newNode param and you want to know if there is something after that so
<xsl:when test="$newNode/following-sibling::node()">
David
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list