List with references?
I am wondering if it is possible to make this work with a standard schema. I'd like to create, in the XML, a list of strings, and restrict some elements to these.
I can also live without the attribute "name" restricted to the list, it can be whatever it works, a child element of string type, or anything! The important piece here is: can I restrict something to a part of the same XML, and yet being compliant with the XSD?
<!-- these are the allowed names -->
<!-- this is ok since "Bob" is listed above -->
<who name="Bob" />
<!-- this is invalid since "Martha" isn't in the list! -->
<who name="Martha" />
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread