- From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
- Date: 30 Nov 2000 10:00:46 +0000
- To: Valery Zubovsky <valery.zubovsky@instill.com>
- Cc: "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>
Valery Zubovsky <valery.zubovsky@instill.com> writes:
> Does this schema fragment make sense?
>
> <complexType name="x">
> <element name="a" type="x"/>
> </complexType>
>
> ... to represent the following structure:
>
> <a>
> <a>
> <a/>
> </a>
> </a>
Sorry for slow reply, I've been on the road (at XML Schema meetings :-).
In principle, what you have is fine. In practice, you need a bit more
to make it completely OK:
<xs:complexType name="x">
<xs:sequence>
<xs:element name="a" type="x" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
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 Thursday, 30 November 2000 05:00:51 UTC