 |
 |
 |
Is there a way in XSD to specify that the name and index will be unique for
a set of fields? If so, could you please give an example..
You can use xs:unique. But exactly how you use it depends on having a
clearer specification. Are you saying "name must be unique and index must
also be unique", or are you saying "the combination of name and index must
be unique" (the second option would allow two things to have the same name
provided they have a different index).
Also, uniqueness applies within some scope - typically there is some element
E within which each child/descendant element F has a unique value for V. You
need to tell us something about E, because that is where you define the
constraint.
Michael Kay
http://www.saxonica.com/
|
 | 

|  |
These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.
|  |
| |
 |
 |
 |