it's a grouping problem (positional grouping in Mike's terminoligy)
you want to group all child nodes before or after text nodes containing
cr ie text()[contains(.,' ')] you need to work at the level of nodes
not of the entire content of your bodytext element.
See Jeni's site on grouping techniques.
David
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list