W3C home > Mailing lists > Public > public-qt-comments@w3.org > August 2009

[Bug 6808] [Ser] Whitespacing rules are too restrictive for the indent parameter

From: <bugzilla@wiggum.w3.org>
Date: Fri, 21 Aug 2009 14:04:19 +0000
To: public-qt-comments@w3.org
Message-Id: <E1MeUj5-00088F-5D@wiggum.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=6808





--- Comment #3 from Henry Zongaro <zongaro@ca.ibm.com>  2009-08-21 14:04:18 ---
Hi, Andy.  Thanks for the clarification.  When I read your initial comments, I
thought you were suggesting that whitespace should be permitted more generally
than just in the complex type with element-only content example - that that was
just one example of why the rules should be relaxed in general.

So the changes might be simpler than I thought.  I think the following change
would suffice.  Replace the second bullet in the list in section 5.1.3 with the
following two bullets:

  "o Whitespace characters MUST NOT be added other than adjacent to an element
     node, comment node or processing instruction node -- that is, immediately
     before a start tag, an empty element tag, a comment or a processing
     instruction, or immediately after an end tag, an empty element tag, a
     comment or a processing instruction.

   o Whitespace characters MUST NOT be added other than adjacent to an element
     node in the content of an element whose content model is not known to be
     element only."

The first new bullet would allow spaces to be added before and after comments
and PIs, including those that appear outside of any element, which is not
generally permitted today.  The second new bullet would prevent them from being
added in those places to elements with mixed or simple content (including those
with type annotation of xs:anyType or xs:untyped).

However, my recommendation remains that this change should not be made in an
erratum, but only in Serialization 1.1.  It would not break existing
implementations, but it doesn't seem to add sufficient benefit to make the
change.  These are my personal opinions of course - it remains for the XQuery
and XSL working groups to decide.


-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Friday, 21 August 2009 14:04:29 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:40 UTC