Re: anySimpleType/anyType/ur-type as baseType of a user defined type?

"Yan Leshinsky" <yanl@microsoft.com> writes:

> Wat about related case with substitution groups. Are following schemas
> valid?
> 
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
> 	<xs:element name="A"/>
> 	<xs:element name="B" substitutionGroup="A" type="xs:string"/>
> </xs:schema>

Yes

> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
> 	<xs:element name="A" type="xs:anyType"/>
> 	<xs:element name="B" substitutionGroup="A" type="xs:string"/>
> </xs:schema>

Yes.

> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
> 	<xs:element name="A"/>
> 	<xs:element name="B" substitutionGroup="A">
> 		<xs:complexType>
> 			...
> 		</xs:complexType>
> 	</xs:element>
> </xs:schema>

Yes

> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
> 	<xs:element name="A" type="xs:anyType"/>
> 	<xs:element name="B" substitutionGroup="A">
> 		<xs:complexType>
> 			...
> 		</xs:complexType>
> 	</xs:element>
> </xs:schema>

Yes.

The first and third are identical to the second and fourth at the
component level.

ht
-- 
  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
          W3C Fellow 1999--2001, part-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/

Received on Monday, 12 November 2001 04:07:47 UTC