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>

Great. 

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

Deborah


-----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
Parameter

Deborah,

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

> 4.5 XML Output Method: the omit-xml-declaration Parameter 
>
http://www.w3.org/TR/2003/WD-xslt-xquery-serialization-20031112/#N105F3 
> 
> This says: "The omit-xml-declaration parameter must be ignored if the 
> standalone parameter is present, or if the encoding parameter
specifies 
> 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
1.1. 
 This would affect both the xml and xhtml output methods.

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

Thanks,

Henry [On behalf of the XSL and XQuery Working Groups.]
[1] 
http://lists.w3.org/Archives/Public/public-qt-comments/2004Feb/0996.html
------------------------------------------------------------------
Henry Zongaro      Xalan development
IBM SWS Toronto Lab   T/L 969-6044;  Phone +1 905 413-6044
mailto:zongaro@ca.ibm.com


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
stated.
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.3.1 : Wednesday, 7 January 2015 15:45:19 UTC