- From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
- Date: 24 Jun 2001 09:48:09 +0100
- To: "Anna A. Yacubovitch" <Anna@locationet.com>
- Cc: <xmlschema-dev@w3.org>
"Anna A. Yacubovitch" <Anna@locationet.com> writes:
> I have to choose between 3 elements, 2 of them are with the same name
> but different type.
> The following part of schema chooses Address or only the first
> Coordinate.
> <xsd:complexType name="GeoCodeRequest">
> <xsd:choice>
> <xsd:element name="Address" type="Address"/>
> <xsd:element name="Coordinate"
> type="UTMCoordinate"/>
> <xsd:element name="Coordinate"
> type="LatLonCoordinate"/>
> </xsd:choice>
> </xsd:complexType>
XML Schema does not allow multiple types for the same element name in
a given content model, sorry.
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 Sunday, 24 June 2001 04:48:07 UTC