W3C home > Mailing lists > Public > public-qt-comments@w3.org > December 2004

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

From: Erik Wilde <net.dret@dret.net>
Date: Tue, 07 Dec 2004 11:12:15 +0100
Message-ID: <41B581FF.3080107@dret.net>
To: public-qt-comments@w3.org


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

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.


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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:22 UTC