- From: Sandy Gao <sandygao@ca.ibm.com>
- Date: Mon, 10 Nov 2003 16:11:19 -0500
- To: www-xml-schema-comments@w3.org
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