![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - SV: XSD feature check-lists >Thread Next - Re: XSV - simple type restriction - length facet XSV - simple type restriction - length facetTo: XML-SCHEMA <xmlschema-dev@--.---> Date: 8/9/2005 7:51:00 PM
Hi,
XSV 2.10-1 does not catch restriction constraints for the "length"
facet.
Example:
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:simpleType name="type-1">
<xsd:restriction base="xsd:string">
<xsd:length value="5"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="type-2">
<xsd:restriction base="type-1">
<xsd:length value="4"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>
XSV reports:
<xsv xmlns="http://www.w3.org/2000/05/xsv" docElt="{None}foo"
instanceAssessed="true" instanceErrors="0" schemaErrors="0"
schemaLocs="None -> length.xsd"
target="file:///p:/libxml2-lab/tests/2005-08-09/length.xml"
validation="lax" version="XSV 2.10-1 of 2005/04/22 13:10:49">
<schemaDocAttempt
URI="file:///p:/libxml2-lab/tests/2005-08-09/length.xsd"
outcome="success" source="schemaLoc"/>
</xsv>
Xerces-J 2.5.1 reports:
length-valid-restriction: Error for type 'type-2'. The value of length =
'4' must be = the value of that of the base type '5'.
I cannot recall if I already reported this, so excuse me
if I did.
Regards,
Kasimier
From u.ende@m... Wed Aug 10 14:01:55 2005
Received: from wiggum.w3.org ([128.30.52.23] | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
