[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: different whitespace-collapse behaviour of parsers

From: Dave Peterson <davep@iit.edu>
Date: Mon, 20 Apr 2009 11:47:47 -0400
Message-Id: <a06240800c6124713c20d@[192.168.1.139]>
To: Dieter Guthmann <mailing-deg@bup-nbg.de>
Cc: xmlschema-dev@w3.org, Michael Kay <mike@saxonica.com>
RE: different whitespace-collapse behaviour of parsers
On Fri, 13 Mar 2009 08:29:16 -0000, Michael Kay wrote (to xmlschema-dev):
>The specification is a little bit less formal than one might like:

>and I guess one could argue for an interpretation that says a character
>can't be a "leading #x20" unless it is followed by something - but it seems
>a bit far-fetched to me. I think Liquid XML Studio is out on a limb here.
>But I've raised bug 6695 to propose a clarification.

The XSD WG has eliminated the words 'leading' and 'trailing'; the revised
text is:

>collapse:
>   After the processing implied by replace, contiguous sequences of #x20's are
>collapsed to a single #x20, and any #x20 at the start or end of the string is
>then removed.

The result of collapsing a string consisting solely of whitespace is
the empty string, and this wording is intended to make that more obvious.
-- 
Dave Peterson
SGMLWorks!

davep@iit.edu
Received on Monday, 20 April 2009 15:53:22 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.