[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: Wed, 1 Jun 2005 14:47:28 -0400
Message-Id: <7351d23dc5e9579382700c62f83a1209@jmp.com>
Cc: XML-SCHEMA <xmlschema-dev@w3.org>
To: Kasimier Buchcik <kbuchcik@4commerce.de>
Re: Whitespace normalization for union types

> The fact that the whitespace-value is at hand when the value was
> already validated against the member-types, seems to contradict with
> [2] Datatype Valid, which mandates the pattern facet to be applied
> first; but without the whitespace-value, normalization is not possible,
> so applying the pattern facet is not possible as well.
> Can someone clarify this?

That rules says that patterns are applied to the lexical values, but  
lexical values only exist *after* white space normalization. 3.1.4 of  
Structures [1] discusses how the "initial value" is turned into a  
"normalized value" using white space processing. (The "initial value"  
space is also called the "pre-lexical" space.) 2.2.1.2 says is it the  
normalized value that is fed into the simple type validation process.

So your example appears valid.

initial value = ' a  '
normalized value (string) = ' a  ' => not valid
normalized value (token) = 'a' => valid

xan

[1]  
http://www.w3.org/TR/2004/REC-xmlschema-1-20041028/ 
structures.html#d0e1654
Received on Wednesday, 1 June 2005 19:36:24 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.