At 04:38 PM 12/17/99 +0100, Pierpaolo Fumagalli wrote: >> I consider this a bug, expecially since it exists a "text" output method >> in XSLT and we must be able to make it work. >It's not a bug in Xerces DOM, IMVHO, this is how it's supposed to work. >The hard thing is that XSLT spec says one thing (you can output text) >and Xalan doesn't consider this when creating dom... It's a "spec" >problem. Removing sanity checks from Xerces would be a workaround, but, >I admit, I can't see any other solution (but removing that xsl output >thing from the XSLT spec! too late)
I think someone's being a bit too careful. The DOM API absolutely allows you to create things that can't be serialized as well-formed XML. There was a lot of discussion of this and it's a deliberate decision, not an accident. Hmm... there may be some other gotchas in the DOM spec that prevent you from emitting *arbitrary* text, e.g. syntax-char escaping. I'll check. -Tim
