XQuery/Validation using a Catalog
From Wikibooks, open books for an open world
< XQuery
[edit] Motivation
You have a library of XML Schemas that you want to associate with namespaces.
[edit] Method
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>
[edit] References
http://atomic.exist-db.org/articles/Validating%20XML%20in%20eXist.pdf