W3C home > Mailing lists > Public > xmlschema-dev@w3.org > September 2004

Constraints on whiteSpace

From: Nikola <nikola.stojanovic@acm.org>
Date: Thu, 9 Sep 2004 11:51:55 -0400
Message-ID: <004d01c49684$eebb0560$4502a8c0@kubura>
To: <xmlschema-dev@w3.org>
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"/>

My understanding (section " 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"
  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"/>

Received on Thursday, 9 September 2004 15:52:01 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:24 UTC