RE: [Serial] serialization of xhtml + omit-xml-declaration

> 
> working with saxon, i discovered that the 
> omit-xml-declaration value is
> ignored if i use any other xml encoding than UTF-8. from the xml point
> of view, this makes sense. 

...i would also suggest to require that the xml declaration is
> not output, regardless of the encoding.

The spec has been changed in this area and Saxon is not up-to-date with the
latest changes. Although the area remains controversial (there has been some
push-back against the change), we decided to respect the request not to
output an XML declaration even if this results in output that is not
well-formed, because of use cases like the one you describe, where fragments
of output are subsequently combined using non-XML-aware tools.

Michael Kay

Received on Tuesday, 7 December 2004 10:26:27 UTC