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

RE: FW: XSLT 2.0: XML Output Method: the omit-xml-declaration Parameter

From: Deborah Cawkwell <deborah.cawkwell@bbc.co.uk>
Date: Tue, 20 Apr 2004 10:47:10 +0100
Message-ID: <418B7E44473AC34488C9E730D09FF3CF02BEF60F@bbcxue204.national.core.bbc.co.uk>
To: "Henry Zongaro" <zongaro@ca.ibm.com>
Cc: <public-qt-comments@w3.org>


To summarize XSLT will 2.0 will be consistent with XML 1.0 (inc erratum)
and the inclusion of an XML prolog will not be a 'MUST'. 

Will it be a 'CAN', if I want to do it?

Thanks v much


-----Original Message-----
From: Henry Zongaro [mailto:zongaro@ca.ibm.com] 
Sent: 13 April 2004 15:51
To: Deborah Cawkwell
Cc: public-qt-comments@w3.org
Subject: Re: FW: XSLT 2.0: XML Output Method: the omit-xml-declaration


     In [1], you submitted the following comment on the Last Call
Draft of XSLT 2.0 and XQuery 1.0 Serialization.

> 4.5 XML Output Method: the omit-xml-declaration Parameter 
> This says: "The omit-xml-declaration parameter must be ignored if the 
> standalone parameter is present, or if the encoding parameter
> a value other than UTF-8 or UTF-16." 
> I would like to control the output of the omit-xml-declaration 
> parameter, where the encoding parameter specifies a value other than
> UTF-8 or UTF-16. I often don't use Unicode. I would like the option 
> to output with non-standard encoding as XHTML. The XHTML standard (
> http://www.w3.org/TR/xhtml1/) specifies that "an XML declaration is 
> not required in all XML documents"; it is often desirable to omit 
> it, given that it is known that there are unexpected results with 
> some user agents.

     Thank you for your comment.

     The XSL and XQuery Working groups discussed your comment.  As 
originally written, XML 1.0 required an XML declaration or a text 
declaration if the encoding of the document or external general parsed 
entity was anything other than UTF-8 or UTF-16.  XSLT 1.0 enforced that 
requirement in its serialization mechanism.  The draft of Serialization 
inherited that behaviour from XSLT 1.0.  However, an erratum to XML 1.0 
removed that requirement.

     In response to your comment, the working groups decided to require 
the XML declaration or text declaration to be omitted, regardless of the

setting of the encoding parameter.  Serialization will permit an XML 
declaration or text declaration to be omitted in precisely those 
circumstances in which it can be omitted according to XML 1.0 and XML
 This would affect both the xml and xhtml output methods.

     As that is the change you requested, I believe that decision will
acceptable to you.   May I ask you to confirm that it is?


Henry [On behalf of the XSL and XQuery Working Groups.]
Henry Zongaro      Xalan development
IBM SWS Toronto Lab   T/L 969-6044;  Phone +1 905 413-6044

BBCi at http://www.bbc.co.uk/

This e-mail (and any attachments) is confidential and may contain
personal views which are not the views of the BBC unless specifically
If you have received it in error, please delete it from your system. 
Do not use, copy or disclose the information in any way nor act in
reliance on it and notify the sender immediately. Please note that the
BBC monitors e-mails sent or received. 
Further communication will signify your consent to this.
Received on Tuesday, 20 April 2004 05:48:32 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:56:56 UTC