whitespace facet
Monday, March 29, 2010
2:04 PM
whitespace facet
determines how to handle whitespace in validating a document
collapse: replace multiple white space with one space
preserve: treat all whitespace literally
replace: every whitespace character becomes a space.
This is done before validation!
 <xs:simpleType name="shortString">
  <xs:restriction base="xs:string">
    <xs:maxLength value="10"/>
    <xs:whitespace value="collapse"/>
  </xs:restriction>
 </xs:simpleType>

matches any string that, after multiple spaces are replaced by one space, has no more than 10 characters in it!
Pasted from <[link]> 