Hi
Aliza,
The Name and
UnNamed Groups that appear in content models ( group,choice,sequence and all)
can be used only for reprtesenting the element and not the
attributes.
This is not possible using XML Schema instead
you can use XSL validation(Using Xalan) for finding
it.
Best
Regards,
Swaminathan
-----Original Message-----
From: Aliza Nagauker [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 26, 2003 12:38 PM
To: '[EMAIL PROTECTED]'
Subject: XML SchemaHello,
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 ** **************************************************************************************************
