posted 19 years ago
Hi,
I have xml file some thing like this
<classes>
<class id='class1' number='1'></class>
<class id='class2' number='2'></class>
<class id='class3' number='3'></class>
<class id='class4' number='4'></class>
</classes>
I want to write schema for this. Constraint is 'class1' can only have number value '1', 'class2' can only have number values '2' so on...
So i can not use enumeration here because some how i want to keep fix values of both the attributes.
One way of doing this is I can define static elements in schema with predefined values but problem doing this is that it rejects to have element with same name more than once.
Any idea how can it be done ?
Any help is appreciated.
Thanks