« Return to Thread: Doctype cannot be added after a root element

RE: Doctype cannot be added after a root element

by Michael Kay :: Rate this Message:

Reply to Author | View in Thread

> Mickael, is there a reason why Saxon does not notify the DTD
> through SAXResult?

Saxon ignores xsl:output entirely unless it is serializing the result tree;
and writing to a SAXResult does not count as serializing.

(There are various other aspects of xsl:output that MIGHT make sense with a
SAXResult, for example indent="yes" and cdata-section-elements. It's never
really occurred to me that anyone would expect this to happen. I've
certainly never seen a spec that suggests it should.)

Michael Kay
http://www.saxonica.com/

_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/youraddr@...

 « Return to Thread: Doctype cannot be added after a root element