Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML Schema- several unique lists?

Status
Not open for further replies.

SMerrill

Programmer
Jan 19, 2002
145
US
I am accustomed to using xsl:ID to describe items that must be unique within the whole file.
However, what if I want several unique lists? That is,
<root>
<item Sequence=&quot;2&quot; Name=&quot;A&quot; />
<item Sequence=&quot;1&quot; Name=&quot;C&quot; />
<item Sequence=&quot;3&quot; Name=&quot;B&quot; />
</root>
I want the above to validate against the XML Schema you suggest, but if I had two Name=&quot;A&quot; attributes, or two Sequence=&quot;3&quot; attributes, I don't want it to validate.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top