XQuery/Validation using a Catalog

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

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 name="http://www.oasis-open.org/committees/docbook/"
   uri="/db/grammar/docbook.dtd /"/>

References[edit | edit source]