Hi,
this is not possible in XML Schema.
Gareth
On Tue, 26 Aug 2003, Aliza Nagauker wrote:
> Hello,
>
> I have a question regarding XML schema indicators.
>
> I have an element that has attributes, but only one of the attributes can be
> define in each element.
> Can I use the choice indicator for attributes as well as for elements?
>
> Is the following legal:
>
> <xs:element name="Aliza">
> <xs:choice>
> <xs:attribute name="ID" type="xs:string"
> use="required"/>
> <xs:attribute name="AGE" type="xs:integer"
> use="required"/>
> </xs:choice>
> </xs:element>
>
> Thanks, Aliza
>
>
>
> **************************************************************************************************
> The contents of this email and any attachments are confidential.
> It is intended for the named recipient(s) only.
> If you have received this email in error please notify the system manager or the
> sender immediately and do not disclose the contents to anyone or make copies.
>
> ** eSafe scanned this email for viruses, vandals and malicious content **
> **************************************************************************************************
>
--
Gareth Reakes, Head of Product Development +44-1865-203192
DecisionSoft Limited http://www.decisionsoft.com
XML Development and Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]