XQuery/Validation using a Catalog

From Wikibooks, open books for an open world
Jump to: navigation, search

Motivation[edit]

You have a library of XML Schemas that you want to associate with namespaces.

Method[edit]

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]

http://atomic.exist-db.org/articles/Validating%20XML%20in%20eXist.pdf