W3C home > Mailing lists > Public > xml-editor@w3.org > October to December 2005

Re: XML specification grammar issue

From: Liam Quin <liam@w3.org>
Date: Sat, 12 Nov 2005 13:17:56 -0500
To: Chris White <chriswhite@gentoo.org>
Cc: xml-editor@w3.org
Message-ID: <20051112181756.GS4509@w3.org>

On Sun, Nov 13, 2005 at 03:35:54AM +0900, Chris White wrote:
> In the XML 1.0 Specification Third Edition, first paragraph of section 2.10, 
> the following sentence is used:
> 'On the other hand, "significant" white space that should be preserved in the 
> delivered version is common, for example in poetry and source code.'
> I believe this should be something along the lines of:
> 'On the other hand, if it is common for the delivered version to contain 
> "significant" white space (poetry or source code for example), then it should 
> be preserved'

Chris -- thank you for writing.  This is a personal reply and not
one from the XML Core Working Group responsible for publishing
errta in the specification, but I wanted to note that in fact the
sentence is correct as written in my view -- your phrasing changes
the meaning.

Whitespace in the input is preserved by an XML processor by default,
unless it is not "significant".  Whether space is significant is
not related to how common it is -- white space is significant in
contexts where #PCDATA may occur, or where there is no DTD content
model to say otherwise.  The XML processor MUST preserve such
white space.  A more formal rewriting might be (again, this is
my own attempt and not the XML Core Working Group)
    On the other hand, many documents do contain "significant"
    white space that must be preserved in the delivered version.



The W3C Publishes the specifications for XML.  We do not have resources
to answer basic or introductory questions.

If you believe have found an error in one of our specifications,
or have a comment that might improve them, particularly in the aera
of interoperability, please send a message (*in text* with a clear
Subject) to the comments address given in the Status section of
that specification.

All public comments are considered, and you will receive a reply,
although it sometimes takes several months.


Liam Quin, W3C XML Activity Lead
Words and Pictures from Old Books: http://fromoldbooks.org/
Received on Saturday, 12 November 2005 18:18:01 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:12:49 UTC