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

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>
RE: xml Schema: restriction of Normalized string
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 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.