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

hello.

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. however, when using xhtml documents as
fragments that are assembled with a non xml-aware server-side mechanism
such as php, this is a problem because unless i use UTF-8, i end up with
xml declarations in the middle of my assembled web page, which makes it
invalid.

http://www.w3.org/TR/xslt-xquery-serialization/#xhtml-output claims that
 the omit-xml-declaration should be observed, but does so only in a
note, which leaves me wondering whether saxon is incorrect or just
interpreting the spec differently. i would suggest to clarify this
issue, and i would also suggest to require that the xml declaration is
not output, regardless of the encoding.

cheers,

erik wilde  -  tel:+41-1-6325132  -  fax:+41-1-6321035
  mailto:net.dret@dret.net  -  http://dret.net/netdret
  computer engineering and networks laboratory   (tik)
  swiss federal institute of technology, zurich (ethz)

Received on Tuesday, 7 December 2004 10:12:24 UTC