W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > October to December 2003

E2-35: min/maxLength after length?

From: Sandy Gao <sandygao@ca.ibm.com>
Date: Mon, 10 Nov 2003 16:11:19 -0500
To: www-xml-schema-comments@w3.org
Message-ID: <OF3D379B56.3742F3B9-ON85256DDA.00737113@ca.ibm.com>





E2-35 [1] makes the following declarations valid:

<xs:simpleType name="st1">
  <xs:restriction base="xs:string">
    <xs:length value="5"/>
  </xs:restriction>
</xs:simpleType>

<xs:simpleType name="st2">
  <xs:restriction base="st1">
    <xs:minlength value="2"/>
  </xs:restriction>
</xs:simpleType>

But the second derivation step doesn't seem to mean anything. This is
analogous to having minInclusive=10 in the base and minExclusive=0 in the
derived, which is not allowed by the spec.

It seems to be a good change to allow "length" after "min/maxLength", but
not the other way around.

[1] http://www.w3.org/2001/05/xmlschema-errata#e2-35

Thanks,
Sandy Gao
Software Developer, IBM Canada
(1-905) 413-3255
sandygao@ca.ibm.com
Received on Monday, 10 November 2003 16:11:28 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:09:01 UTC