In addition, if you have any subschemas (dependency schemas) that are referenced by the master schema, you must manually add those documents to the Dependency Schemas and DTDs section.
DTD documents referenced by the XML document must be present in the correct directory, otherwise the XML document will not be found during validation.
The library relies on the com.thaiopensource.validate. Validation Driver which supports a wide range of grammar types: (URL.java:413) at org.exist.xquery.functions.validation. Basic Function.eval(Basic Function.java:68) at ...... The XML parser (Xerces) compiles all grammar files (dtd, xsd) upon first use.
Stream Source(Shared.java:140) at org.exist.xquery.functions.validation. Input Source(Shared.java:190) at org.exist.xquery.functions.validation. For efficiency reasons these compiled grammars are cached and made available for reuse, resulting in a significant increase of validation processing performance.
The validation of inline schemas is supported, however, as the schema will generally reside below the root element.