Re: XML specification grammar issue

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.

Liam

*

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

-- 
Liam Quin, W3C XML Activity Lead
http://www.w3.org/People/Quin/
Words and Pictures from Old Books: http://fromoldbooks.org/

Received on Saturday, 12 November 2005 18:18:01 UTC