Is it possible to define in XML Schema an condition based on attribute value? For example, when test@attrib=\"one\", I want one-element to be allowed a
test@attrib=\"one\"
one-element
Not within the same type. You would need to define a different type for each of the different options.
UPDATE
To re-use type definitions in your schema:
This will validate:
sadas sadas sadas sadas
and