Sorry, I'm limited to using W3C - unless I break with the standard (in my project team, that is) and use a different schema type *plus* rebuild the schema for the rest of the XML.. Which is pretty long, so I'm hoping that there's a W3C-schema-solution somewhere out there!
Out of curiosity, how would I restrict the attribute values as mentioned in RelaxNG/SchemaTron? Thanks!
User Profile
Collapse
-
-
Schema - How to ensure that attributes are different?
I'm utterless clueless on how I can go about declaring in my schema that two attributes must contain different values, e.g.
How do I set the restriction in the schema that the "to" attribute and "from" attribute must contain different values? Hence 'to="Amy" from="Bob"' will validate, while 'to="Amy" from="Amy"'...Code:<mail to="" from="">Text</mail>
No activity results to display
Show More
Leave a comment: