I need to know if there is a way to create in a XML schema something similar but more strong then IDREFS without using the IDREFS type. I need an attribute that is a list of keyref.
- I define a key
- I define a keyref
- How to proceed now? I need to define an attribute that is a sort of list of keyref
Example:
myAttribute = "keyref1 keyref2 keyref3 ..." and so on
Remember: With IDREFS I cannot create a list of referenced items.
No, unfortunately keyrefs can only select nodes, not tokens within the values of a node.
To implement this kind of constraint you can use XSD 1.1 assertions: