- From: Michael Kay <mhk@mhk.me.uk>
- Date: Thu, 9 Sep 2004 17:51:38 +0100
- To: "'Nikola'" <nikola.stojanovic@acm.org>, <xmlschema-dev@w3.org>
- Message-ID: <E1C5S9o-0005tm-2O@frink.w3.org>
I think you are right. The schema validator in Saxon is attempting to do this check but gets it wrong. I will fix it. Michael Kay http://www.saxonica.com/ _____ From: xmlschema-dev-request@w3.org [mailto:xmlschema-dev-request@w3.org] On Behalf Of Nikola Sent: 09 September 2004 16:52 To: xmlschema-dev@w3.org Subject: Constraints on whiteSpace 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
Received on Thursday, 9 September 2004 16:52:24 UTC