Tim Bray 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.

Good, so I can have a document with only a big text node as a child
node? That's what the spec says? I'm all for it. So, it's a bug in
Xerces DOM.

> 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.

I'll let the "experts" speak :) :) :) (I just USE dom, never designed
it)

        Pier

Reply via email to