W3C home > Mailing lists > Public > public-qt-comments@w3.org > May 2015

[Bug 28540] [FO30] [FO31] defaults for serialization parameters with fn:serialize not defined

From: <bugzilla@jessica.w3.org>
Date: Mon, 11 May 2015 22:26:03 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-28540-523-Cx8cN4WwIL@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=28540

Christian Gruen <christian.gruen@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |christian.gruen@gmail.com

--- Comment #9 from Christian Gruen <christian.gruen@gmail.com> ---
I share some of Josh's concerns when it comes to introducing defaults that
haven't existed in earlier versions of XQuery. On the other hand, I would have
favored if defaults had been defined in the very beginning, so I have a hard
time deciding for one or another.

However, these would be my favorites when defaults are to be chosen:

> encoding               utf-8

This would also be my favorite. One of the reasons is that most today's XML
documents are encoded as UTF-8, so to me it seems to be the most obvious output
format as well (think e.g. that the results are also stored in files, or simply
output on command-line as well).

> item-separator         tab

I think it would be the most unobtrusive choice not to define any character by
default (i.e., to have it absent). If a character is to be assigned, though,
the newline character (&#xA;) could be another alternative. It is already used
in the adaptive method if the item-separator is absent. As second alternative,
I would also prefer to have a space instead of a tab.

> standalone             no

Similar to Abel, I would prefer 'omit' as default.

> omit-xml-declaration   no

I would also vote for 'yes' as default value. The XML declaration only makes
sense if the XML method is used for serializing a single document. Moreover, if
UTF-8 will be defined as default encoding, and if 'omit' was chosen as the
default of 'standalone', the XML declaration would be superfluous for the
default case.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Monday, 11 May 2015 22:26:05 UTC

This archive was generated by hypermail 2.3.1 : Monday, 11 May 2015 22:26:06 UTC