Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


XSV - "violation of constraints on exponents" warning

From: Kasimier Buchcik <kbuchcik@---------.-->
To: XML-SCHEMA <xmlschema-dev@--.--->
Date: 8/8/2005 7:43:00 PM
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

From noah_mendelsohn@u... Tue Aug 09 06:28:15 2005
Received: from lisa.w3.org ([128.30.52.4


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent