I have a piece of XMS like this:
<xs:element name="student" maxOccurs="unbounded" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element type="xs:string" name="name"/>
<xs:element type="xs:int" name="id"/>
</xs:sequence>
</xs:complexType>
</xs:element>
I want to define that the id element inside the student element has to be unique among all the students. Is there a way of doing so using xs:key or something like that?