- 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:annotation> <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#normalizedString"/> </xs:annotation> <xs:restriction base="xs:string"> <xs:whiteSpace value="replace" id="normalizedString.whiteSpace"/> </xs:restriction> </xs:simpleType> Your restriction violates rule 2 of Schema Component Constraint: whiteSpace valid restriction, found in section 4.3.6.4 of Schema 1.0 Part 2. Michael Kay http://www.saxonica.com/ _____ 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 Hi.. 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"/> </xs:restriction> </xs:simpleType> </xs:schema> Thanks and regards, Bharath. **************************************************************************** **************************** 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