Today's description languages can support modularization functionalities.
RELAX NG, , for example, can support modularity.
Referencing external patterns:
The external pattern can be used to reference a pattern defined in a separate file. The external keyword is followed by a quoted string specifying the URL of a file containing the pattern. The external pattern matches if the pattern contained in the specified URL matches.
In addition, RELAX NG has the features of
- Combining definitions
- Merging grammars
- Replacing definitions
XSLT provides two mechanisms to combine stylesheets:
- <xsl:include href = uri-reference /> an inclusion mechanism that allows stylesheets to be combined without changing the semantics of the stylesheets being combined, and
- <xsl:import href = uri-reference /> an import mechanism that allows stylesheets to override each other.