relax ng and w3c xml schema allow for similar mechanisms of specificity. both allow for a degree of modularity in their languages, including, for example, splitting the schema into multiple files. and both of them are, or can be, defined in an xml language.