Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Whitespace normalization for union types

From: Xan Gregg <xan.gregg@---.--->
To: Kasimier Buchcik <kbuchcik@---------.-->
Date: 6/1/2005 10:47:00 AM
> 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


From K.Buchcik@4... Wed Jun 01 21:20:04 2005
R


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent