Restrict single attribute usage in sequence using XML Schema

Almomidib

New Member
Supposing the following instance document:\[code\]<person> <name>Maurice Moss</name> <addresses> <address current="true">441 Wallaby way</address> <address>2 Mercer Road</address> </addresses></person>\[/code\]Using XML Schema, is it possible to enforce that only one \[code\]<address>\[/code\] element can have it's \[code\]current\[/code\] attribute set to "true" within the sequence. CheersNOTE: I'm not quite sure how to phrase this problem, so I hope anyone having better idea can fix the title or place relevant tags.
 
Back
Top