Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Constraints on whiteSpace

From: George Cristian Bina <george@----.-->
To: Nikola <nikola.stojanovic@---.--->
Date: 9/10/2004 1:17:00 AM
Hi Nikola,

 > My understanding (section "4.3.6.4 Constraints on whiteSpace Schema
 > Components" in http://www.w3.org/TR/xmlschema-2/) is that it is not.
 > However, none of the tools I've tried report it.

Xerces will report an error on this schema:

E whiteSpace-valid-restriction.1: In the definition of NameType, the 
value 'preserve' for the facet 'whitespace' is invalid, because the 
value for 'whitespace' has been set to 'collapse' in one of the 
ancestor types.	test.xsd	file:/D:/test/test.xsd	4:37

Best Regards,
George
------------------------------------------------
George Cristian Bina mailto:george@o...
<oXygen/> XML Editor - www.---.com/

Nikola wrote:
>  
> Could someone comment whether this is valid or not
> <?xml version="1.0" encoding="UTF-8"?>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" 
> elementFormDefault="qualified" attributeFormDefault="unqualified">
>   <xs:simpleType name="NameType">
>     <xs:restriction base="xs:token">
>       <xs:whiteSpace value="preserve"/>
>     </xs:restriction>
>   </xs:simpleType>
> </xs:schema>
> My understanding (section "4.3.6.4 Constraints on whiteSpace Schema 
> Components" in http://www.w3.org/TR/xmlschema-2/) is that it is not. 
> However, none of the tools I've tried report it. Here is the XSV command 
> line and the output
> 
> xsv -i -w file:///c:/tmp/WhiteSpace.xsd
> <?xml version='1.0'?>
> <xsv xmlns="http://www.w3.org/2000/05/xsv" instanceAssessed="false"
>   schemaDocs=file:///c:/tmp/WhiteSpace.xsd
>   schemaErrors="0" target="[standalone schema assessment]"
>   version="XSV 2.7-1 of 2004/04/01 13:40:50">
>   <schemaDocAttempt URI="file:///c:/tmp/WhiteSpace.xsd"outcome="success" 
> source="command line"/>
> </xsv>
>  
> 
> Regards,
> Nikola

From frakilk@y... Fri Sep 10 21:24:00 2004
Received: from lisa.w3.org ([12


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