W3C home > Mailing lists > Public > xmlschema-dev@w3.org > September 2005

Duplicate attribute uses, extension, bug in SQC

From: Kasimier Buchcik <K.Buchcik@4commerce.de>
Date: Thu, 29 Sep 2005 13:01:33 +0200
To: XML-SCHEMA <xmlschema-dev@w3.org>
Message-Id: <1127991693.1272.4.camel@librax>

Hi,

Potential bug in IBM's SQC.
The following schema is accepted by SQC, while the
schema processors Xerces-J 2.7.1, Saxon 8.5.1,
XSV 2.10 and Libxml2 2.6.22 report the attribute use
for "bar" to have a duplicate in the extending complex
type.

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"	
	targetNamespace="urn:test:foo"
	xmlns:f="urn:test:foo">

	<xs:complexType name="base">
		<xs:attribute name="bar"/>
	</xs:complexType>

	<xs:element name="foo">
		<xs:complexType>
			<xs:complexContent>
				<xs:extension base="f:base">
					<xs:attribute name="bar"/>
				</xs:extension>
			</xs:complexContent>
		</xs:complexType>
	</xs:element>

</xs:schema>

Regards,

Kasimier
Received on Thursday, 29 September 2005 11:01:40 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:51 GMT