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

anonymous type global elements of same name in a model group

From: KAZUMI Saito <ksaito@jp.fujitsu.com>
Date: Fri, 12 Sep 2003 11:30:39 +0900
Message-Id: <200309120230.AA03304@otohime.jp.fujitsu.com>
To: xmlschema-dev@w3.org


Hi, 

I'd like to know following schema is valid or not.

	<xsd:element name="elem1">
		<xsd:complexType/>
	</xsd:element>

	<xsd:complexType name="type1">
		<xsd:sequence>
			<xsd:element ref="elem1"/>
			<xsd:element ref="elem1"/>
		</xsd:sequence>
	</xsd:complexType>

Because the type definition of elem1 has no name,
this schema seems to break "Element Declarations Consistent" of
3.8.6 in spec.

-----
 KAZUMI Saito  FUJITSU Ltd.
Received on Thursday, 11 September 2003 23:48:13 GMT

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