posted 16 years ago
Hi Jack,
Am not sure if you can override an attribute like that, but your requirement can be achieved in almost a similar way as yours but with an additional type.
Find the below given sample XSD which suits your requirement :
Sample XML for the above XSD :
In the xml you can observe the element grad_student, the first occurrence has the salary attribute where as the second doesn't.
Regards,
Srivatsa Katta