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

Re: Whitespace normalization for union types

From: Xan Gregg <xan.gregg@jmp.com>
Date: Thu, 2 Jun 2005 09:33:53 -0400
Message-Id: <e66c4cdde9f9eb200992386a6f00c9d6@jmp.com>
Cc: XML-SCHEMA <xmlschema-dev@w3.org>
To: Kasimier Buchcik <kbuchcik@4commerce.de>
Re: Whitespace normalization for union types

On Jun 1, 2005, at 6:00 PM, Kasimier Buchcik wrote:
> Hmm, I repeat [1]:
> "For all datatypes ·derived· by ·union·  whiteSpace does not apply
> directly; however, the normalization behavior of ·union· types is
> controlled by the value of whiteSpace on that one of the ·memberTypes·
> against which the ·union· is successfully validated."

I don't understand the last use of the word "union" in the quoted text. 
You seem to be reading the word to mean something like "intial value" 
or "pre-normalized string", which sounds reasonable. While I can't make 
sense of it literally, I was reading it to imply that for the member 
type to control the whiteSpace normalization, the value had to also be 
valid against the entire rest of the union type (including facets).

Now that I think about the ramifications, I like your interpretation 
better, mainly because it keeps the base type validation separate.

> I really need some definitive clarification on this.

I think the application of facets to unions is underspecified. 
Afterall, there are statements like:

     The value space and lexical space of a union datatype are the
     union of the value spaces and lexical spaces of its memberTypes.

which ignores the possibility of facets. I don't see any real 
improvement in the 1.1 working draft, either.

xan
Received on Thursday, 2 June 2005 13:34:00 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.