W3C home > Mailing lists > Public > xmlschema-dev@w3.org > December 2008

RE: xml Schema: restriction of Normalized string

From: Michael Kay <mike@saxonica.com>
Date: Fri, 5 Dec 2008 08:59:16 -0000
To: <bharathkr@huawei.com>, <xmlschema-dev@w3.org>
Message-ID: <7C3F0F67D0734A82A7443A03E33893AB@Sealion>
No, it isn't. The S4S gives the definition of normalizedString as
<xs:simpleType name="normalizedString" id="normalizedString">





    <xs:restriction base="xs:string">

      <xs:whiteSpace value="replace" id="normalizedString.whiteSpace"/>



Your restriction violates rule 2 of Schema Component Constraint: whiteSpace
valid restriction, found in section of Schema 1.0 Part 2.
Michael Kay


From: xmlschema-dev-request@w3.org [mailto:xmlschema-dev-request@w3.org] On
Behalf Of bharath
Sent: 05 December 2008 07:22
To: xmlschema-dev@w3.org
Subject: xml Schema: restriction of Normalized string



Can you please tell me the following is valid restriction or not.



<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">

       <xs:simpleType name="myType">

              <xs:restriction base="xs:normalizedString">

                     <xs:whiteSpace value="preserve"/>






Thanks and regards,


 This e-mail and attachments contain confidential information from HUAWEI,
which is intended only for the person or entity whose address is listed
above. Any use of the information contained herein in any way (including,
but not limited to, total or partial disclosure, reproduction, or
dissemination) by persons other than the intended recipient's) is
prohibited. If you receive this e-mail in error, please notify the sender by
phone or email immediately and delete it!

Received on Friday, 5 December 2008 08:59:57 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:15 UTC