>I think the problem here is that the parser does not know what >whitespace is ignorable unless it is validating.
Bingo. I believe Mike Kay's book has a good section discusing whitespace management in XSLT; my copy's currently in a box so I can't cite a specific page. Another good resource is http://www.dpawson.co.uk/xsl/sect2/N8321.html
