VirtualBox

source: vbox/trunk/src/libs/dita-ot-1.8.5/docsrc/readme/xmlcatalog.xml@ 99527

Last change on this file since 99527 was 98584, checked in by vboxsync, 2 years ago

Docs: bugref:10302. Setting svn properties of DITA-OT library.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.4 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!--Arbortext, Inc., 1988-2010, v.4002-->
3<!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN"
4 "concept.dtd">
5<concept id="xmlcatalog" xml:lang="en-us">
6<title>XML Catalog</title>
7<shortdesc>This is an introduction of XML catalog. </shortdesc>
8<conbody>
9<p>An <i>XML catalog</i>, which can be physically composed of several <i>catalog
10entry files</i>, is a logical structure that describes mapping information
11for various resources. A <i>catalog entry file</i> is an xml file
12that includes a group of <i>catalog entries</i>. </p>
13<p>A <i>catalog entry</i> can be used to locate a unified resource
14identifier (URI) reference for a certain resource such as a DTD
15or Schema module. An external entity's <i>public identifier</i> is
16used for mapping to the URI reference. </p>
17<p>When the Public ID and System ID are both specified in a document,
18and the Public ID is used to locate a resource, the URI of the System
19identifier can be ignored.</p>
20<section> <title>Why use XML Catalog</title><p>XML Catalogs are
21used to make the XML setup more flexible and portable. Using
22XML Catalogs, you can:<ul>
23<li>Map from the logical names such as the public identifiers. The
24 public identifier is safer and more stable to use to locate
25a specific file than the system identifier. Even if the
26physical location of the resource changes, you only need
27to make revision accordingly on the public identifier within
28the catalog.</li>
29<li> Move documents without changing references. If a document uses
30another resource, and the location of the document changes, the Public
31ID remains valid and the content is still valid.</li>
32<li>Establish a local cache mechanism to locate the files associated
33with public identifiers or remote resources. With this mechanism
34the delay that occurs when locating remote resources can
35be avoided. </li>
36</ul> </p> </section>
37<section> <title>An XML Catalog Example</title> <p>Here is
38an example of a XML Catalog file.</p> <p><b>Example 1. An XML
39Catalog File:</b> <i>catalog-dita.xml</i>.</p> <codeblock> &lt;?xml version="1.0" ?&gt;
40&lt;catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="public"&gt;
41 &lt;!-- Catalog for DITA --&gt;
42 &lt;!-- DITA DTDs --&gt;
43 &lt;group xml:base="dtd"&gt;
44 &lt;public publicId="-//IBM//DTD DITA Concept//EN" uri="concept.dtd"/&gt;
45 &lt;public publicId="-//IBM//ELEMENTS DITA Concept//EN" uri="concept.mod"/&gt;
46 &lt;/group>
47&lt;/catalog&gt;</codeblock> <note> <ol>
48<li>The <tt>catalog</tt> element contains all other entries, and also
49 includes a catalog namespace identifier. The attribute
50of <tt>prefer</tt> is set to <tt>public</tt>, which means
51that the public identifiers are used to resolve the catalog
52before using the system identifiers.</li>
53<li>The group element is simply a wrapper element where the attributes
54 such as <tt>xml:base</tt> are set. These attributes apply
55to all entries that are within the group content. The <tt>xml:base</tt>
56 attribute sets the main pathname prefix that all URIs are
57located relative to; so, in the example above, <filepath>concept.dtd</filepath> will
58be found in the <filepath>dtd/</filepath> directory (relative to the
59location of the catalog).</li>
60</ol> </note> </section>
61</conbody><?Pub Caret -1?>
62</concept>
63<?Pub *0000003515?>
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette