W3C home > Mailing lists > Public > xmlschema-dev@w3.org > December 2004

UPA violation or not?

From: Michael Kay <mike@saxonica.com>
Date: Thu, 16 Dec 2004 00:18:35 -0000
To: <xmlschema-dev@w3.org>
Message-Id: <E1CejLo-0002lM-00@ukmail1.eechost.net>

Xerces reports this schema as a UPA violation, XSV reckons it is OK. Which
is correct?

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
	<xs:complexType name="bar">
		  <xs:element ref="pongo" minOccurs="0" maxOccurs="2"/>
		  <xs:element ref="pongo" minOccurs="0" maxOccurs="2"/>
	<xs:element name="doc" type="bar"/>
	<xs:element name="pongo" type="xs:string"/>

Saxon 8.1 reports it as ambiguous, my current build of Saxon 8.2 doesn't (an
unintentional side-effect of an unrelated change). 

My reading of the spec is that it probably is ambiguous, but that it really
doesn't need to be.

Michael Kay
Received on Thursday, 16 December 2004 00:18:37 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:07 UTC