- From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
- Date: 03 Jan 2001 18:53:03 +0000
- To: Kerry Coffin <kcoffin@mediaone.net>
- Cc: xmlschema-dev@w3.org
Kerry Coffin <kcoffin@mediaone.net> writes:
> Is this a legal use of substitution Group?
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xsd:schema xmlns:xsd="http://www.w3.org/2000/10/XMLSchema"
> elementFormDefault="qualified">
> <xsd:element name="A" type="AType" abstract="true"/>
> <xsd:element name="B" type="BType" substitutionGroup="A"/>
> <xsd:complexType name="AType" abstract="true"/>
> <xsd:complexType name="BType">
> <xsd:complexContent>
> <xsd:extension base="AType">
> <xsd:choice maxOccurs="unbounded">
> <xsd:element ref="A"/>
> </xsd:choice>
> </xsd:extension>
> </xsd:complexContent>
> </xsd:complexType>
> </xsd:schema>
Sure. What made you worry that it would not be?
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 Wednesday, 3 January 2001 13:53:06 UTC