by Eric van der Vlist is published by O'Reilly & Associates (ISBN: 0596004214)
<xsd:simpleType name="normalizedString" id="normalizedString"> <xsd:restriction base="xsd:string"> <xsd:whiteSpace value="replace"/> </xsd:restriction> </xsd:simpleType> |
The lexical space of xsd:normalizedString is unconstrained (any valid XML character may be used). Its value space is the set of strings after whitespace replacement—i.e., after any occurrence of #x9 (tab), #xA (linefeed), and #xD (carriage return) have been replaced by an occurrence of #x20 (space) without any whitespace collapsing.
This is the only datatype that performs whitespace replacement without collapsing. When whitespace isn't significant, xsd:token is preferred.
This datatype corresponds neither to the XPath function normalize-space() (which performs whitespace trimming and collapsing) nor to the DOM normalize method (which is a merge of adjacent text objects).
This text is released under the Free Software Foundation GFDL.