I suppose if Xalan knew that the output was text, it could add something like a <TEXTROOT> node, and then strip it off on output. Does this work?
Mike Tom Palmer wrote: > > > 2. Can a text node be a child of a document node? This is a DOM > > level 1 question, and the answer is no, which is why the Xerces > > DOM implementation was testing for and disallowing it. > > > Based on that, if DOM 2 doesn't suddenly change it last minute, > I agree with an earlier comment that XSLT can apparently produce > documents that have nothing to do with DOM, and as such, Xalan > should be modified, not Xerces. > > (Of course, I'm not official here. It's just my two bits as an > observer.) > > - Tom
