Can a Relax NG element / attribute be made unique?
For example, the attribute:
<rng:attribute name="test"> <rng:ref name="options"/> </rng:attribute>
links to:
<rng:define name="options"> <rng:choice> <rng:value>t1</rng:value> <rng:value>t2</rng:value> <rng:value>t3</rng:value> </rng:choice> </rng:define>
Now I need to check the xml, which should not use one of the βoptionsβ twice. In other words: in the xml should not appear "t1" twice ...
I read something about the schematron. But is there any other possibility?
source share