Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: xml Schema: restriction of Normalized string

From: "Michael Kay" <mike@--------.--->
To: <bharathkr@------.--->, <xmlschema-dev@--.--->
Date: 12/5/2008 8:59:00 AM
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@w... [mailto:xmlschema-dev-request@w...] On
Behalf Of bharath
Sent: 05 December 2008 07:22
To: xmlschema-dev@w...
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!

 



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent