I have a stylesheet that produces (spread over two templates) an element node with a bunch of text node childs. Is there any way to tell the stylesheet processor (SAXON, in my case) to produce a single text node instead? BTW, element.normalize() in Xerces 1.3.1 on the resulting DOM doesn’t do the job, either - which surprises me a little. According to my debug output, all nodes have type TEXT_NODE, so normalize() should do the job - any comments?
Not directly an answer:
I have managed to get rid of adjoining text nodes with the normalize function of the MSXML 3 parser and its DOM. Thus I expect it to work with other implementations as well. Maybe a bug in Xerces?