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

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.

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