- From: Kasimier Buchcik <kbuchcik@4commerce.de>
- Date: Mon, 08 Aug 2005 17:42:39 +0200
- To: XML-SCHEMA <xmlschema-dev@w3.org>
Hi,
the XSV team wanted to be informed of "violation of constraints on
exponents" warnings.
For the example further down, XSV reports:
bug310264.xml:9,1: content of c is not allowed to end here (4),
expecting [u'++(b)', u'{http://myns}:a']:
Plus:
<schemaWarning ...>violation of constraints on exponents</schemaWarning>
(Note that this is a reduced version from a bug report
submitted by Tom Moog for Libxml2:
http://bugzilla.gnome.org/show_bug.cgi?id=310264)
bug310264.xsd:
<xs:schema xmlns:tns="http://myns"
targetNamespace="http://myns"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="a" />
<xs:complexType name="c" >
<xs:sequence minOccurs="1" maxOccurs="2">
<xs:sequence minOccurs="2" maxOccurs="3">
<xs:element ref="tns:a" />
</xs:sequence>
</xs:sequence>
</xs:complexType>
<xs:element name="c" type="tns:c" />
</xs:schema>
bug310264.xml:
<c xmlns="http://myns"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://myns bug310264.xsd">
<a/> <!-- 1 -->
<a/> <!-- 2 -->
<a/> <!-- 3 -->
<a/> <!-- 4 -->
</c>
MSXML 4.0 reports:
bug310264.xml:9,3: Element content is incomplete according to the
DTD/Schema.
Xerces-J 2.5.1 (I have currently no recent version at hand) does
not report an error.
Regards,
Kasimier
Received on Monday, 8 August 2005 15:42:49 UTC