[Home] [By Thread] [By Date] [Recent Entries]
In my schema, the same element can have diffenet view.
e.g. <a id="123" name="test"/>
<a id="123" view="true"/> <a id="123" alt="true"/> I am not interested to make name, view and alt attributes
optional. One of these attributes must be there in <a> element. Which
necessiates me for looking into a choice kind of
functionality.
regards, From: Michael Kay [mailto:mike@s...] Sent: Tuesday, March 08, 2005 2:42 PM To: Baisak, Ranjan; 'XML Developers List' Subject: RE: Is possible to have choice type facility for an attribute of schema Sadly, no.
I've never quite understood why: XML Schema when to a lot
of efforts to make elements and attributes symmetric, but they are handled quite
differently in content models.
Michael Kay
http://www.saxonica.com/
|

Cart



