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

whiteSpace facet

From: Shlomo Yona <S.Yona@F5.com>
Date: Sun, 18 Nov 2007 09:47:51 -0800
Message-ID: <AB313AF70F994447A667F4D942CA65570E73F0F7@excheight.olympus.f5net.com>
To: <xmlschema-dev@w3.org>
whiteSpace facet
Hello,

 

My questions are regarding White Space Normalization during Validation
http://www.w3.org/TR/2004/REC-xmlschema-1-20041028/structures.html#d0e16
54.

 

1.	Is there a "default" value for the whiteSpace facet for
xsd:string, xsd:normalizedString and xsd:token?
2.	What is the value of the whiteSpace facet for xsd:string? I
assumed it was 'preserve'. Is it?
3.	What is the value of the whiteSpace facet for
xsd:normalizedString? I assumed it was 'replace'. Is it?
4.	What is the value of the whiteSpace facet for xsd:token? I
assumed it was 'collapse'. Is it?

 

For example, if I have an element of type xsd:normalizedString and in
the XML instance the value of that element contains newline characters
should I:

a.	Expect an error/warning because the newline character is not in
the lexical space of xsd:normalizedString?
b.	Expect the newline to be replaced with a space before validation
proceeds?
c.	Something else?

 

I'd go for "a" if the (implied?) "default" value for the whiteSpace
facet was "preserve".

I'd go with "b" if the answer for question #3 was that the value is (or
is implied to be) "replace".

 

But I just don't know.

 

Can you please point to the relevant section(s) in the XML Schema 1.0
recommendation that supports your answer?

 

Thank you.

 

Shlomo.
Received on Sunday, 18 November 2007 17:48:08 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.