W3C home > Mailing lists > Public > xmlschema-dev@w3.org > November 2001

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

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 12 Nov 2001 09:08:41 +0000
To: "Yan Leshinsky" <yanl@microsoft.com>
Cc: "Aung Aung" <aaung@microsoft.com>, <xmlschema-dev@w3.org>, "Ashok Malhotra" <ashokma@microsoft.com>, "Huseyin Ulger" <ulger@microsoft.com>, "David Brown (WEBDATA)" <davebrow@microsoft.com>
Message-ID: <f5beln44aqu.fsf@cogsci.ed.ac.uk>
"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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:13:35 GMT