XQuery/Validation using a Catalog
Appearance
< XQuery
Motivation
[edit | edit source]You have a library of XML Schemas that you want to associate with namespaces.
Method
[edit | edit source]An XML Catalog file contains a list of URIs and the files use to validate them.
For example the following is a catalog file that describes how DocBook files should be validated:
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<public publicId="-//OASIS//DTD XML DocBook V4.1.2//EN"
uri="/db/grammar/docbook.dtd"/>
<uri name="http://www.oasis-open.org/committees/docbook/"
uri="/db/grammar/docbook.dtd /"/>
</catalog>
References
[edit | edit source]http://atomic.exist-db.org/articles/Validating%20XML%20in%20eXist.pdf