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

Re: anonymous type global elements of same name in a model group

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: Fri, 12 Sep 2003 09:29:27 +0100
To: KAZUMI Saito <ksaito@jp.fujitsu.com>
Cc: xmlschema-dev@w3.org, www-xml-schema-comments@w3.org
Message-ID: <f5b8you4dg8.fsf@erasmus.inf.ed.ac.uk>

KAZUMI Saito <ksaito@jp.fujitsu.com> writes:

> 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>

Should be, but the REC language is broken here -- I'm pretty sure the
intent was for this constraint to apply to two _distinct_ element
declarations, which means at least one of them would have to be local,
as all refs to a named top-level element decl produce the _same_
element decl.

I'm not aware of any processors which complain about this case.

  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
                      Half-time member of W3C Team
     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
	    Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
		     URL: http://www.ltg.ed.ac.uk/~ht/
 [mail really from me _always_ has this .sig -- mail without it is forged spam]
Received on Friday, 12 September 2003 04:29:28 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:13 UTC