blob: 26b55072a35f159fdce5f81adeb837d1c1b6a07e [file] [log] [blame]
MDT 2001 John Fleck5bd39dc2001-09-03 15:14:19 +00001<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
2<html>
3<head>
4<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
5<title>xmlcatalog</title>
6<meta name="generator" content="DocBook XSL Stylesheets V1.41">
7</head>
8<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry">
9<h1 class="title">
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +000010<a name="id2703858"></a>xmlcatalog</h1>
MDT 2001 John Fleck5bd39dc2001-09-03 15:14:19 +000011<div class="refnamediv">
MDT 2001 John Fleck60416fa2001-10-09 02:41:50 +000012<a name="id2707811"></a><h2>Name</h2>xmlcatalog &#8212; Command line tool to parse and manipulate XML or
MDT 2001 John Fleck5bd39dc2001-09-03 15:14:19 +000013 SGML catalog files.</div>
14<div class="refsynopsisdiv">
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +000015<a name="id2707831"></a><h2>Synopsis</h2>
16<div class="cmdsynopsis" id="id2707834">
17<a name="id2707834"></a><tt>xmlcatalog</tt> [--shell | --create | --add <i><tt>type</tt></i>
MDT 2001 John Fleck5bd39dc2001-09-03 15:14:19 +000018 <i><tt>orig</tt></i> <i><tt>replace</tt></i> | --del <i><tt>values</tt></i> | --noout | --verbose] [<tt><i><tt>catalogfile</tt></i></tt>] [<tt><i><tt>entities</tt></i></tt>]</div>
19</div>
20<div class="refsect1">
21<a name="introduction"></a><h2>
22<a name="introduction"></a>Introduction</h2>
23<p>
24 xmlcatalog is a command line application
25 allowing users to monitor and manipulate XML and
26 SGML catalogs. It is included in
27 libxml2.
28 </p>
29<p>
30 Its functions can be invoked from a single command from the command line,
31 or it can perform multiple functions in interactive mode. It can operate
32 on both XML and SGML files.
33 </p>
34</div>
35<div class="refsect1">
36<a name="cloptions"></a><h2>
37<a name="cloptions"></a>Command Line Options</h2>
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +000038<div class="variablelist"><dl>
39<dt>
40<a name="id2705356"></a><span class="term"><tt>--shell</tt> <i><tt>filename</tt></i></span>
41</dt>
MDT 2001 John Fleck60416fa2001-10-09 02:41:50 +000042<dd>
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +000043 Run a shell
44 allowing interactive queries on catalog file
45 <i><tt>filename</tt></i>.
MDT 2001 John Fleck60416fa2001-10-09 02:41:50 +000046 </dd>
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +000047<dt>
48<a name="id2705383"></a><span class="term"><tt>--create</tt> <i><tt>filename</tt></i></span>
49</dt>
MDT 2001 John Fleck60416fa2001-10-09 02:41:50 +000050<dd>
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +000051 Create a new
52 XML catalog. Outputs to stdout, ignoring
53 <i><tt>filename</tt></i> unless <tt>--noout</tt> is
54 used, in which case it creates a new catalog file
55 <i><tt>filename</tt></i>.
MDT 2001 John Fleck60416fa2001-10-09 02:41:50 +000056 </dd>
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +000057<dt>
58<a name="id2705423"></a><span class="term"><tt>--add</tt> <i><tt>'type'</tt></i> <i><tt>'orig'</tt></i> <i><tt>'replace'</tt></i> <i><tt>filename</tt></i></span>
59</dt>
MDT 2001 John Fleck60416fa2001-10-09 02:41:50 +000060<dd>
61<p>
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +000062 Add an entry to catalog file
63 <tt>filename</tt>. <i><tt>type</tt></i> indicates
64 the type of entry. Possible types are 'public', 'system', 'rewriteSystem',
65 'delegatePublic' and 'delegateSystem'. <i><tt>'orig'</tt></i>
66 is the original reference to
67 be replaced, and <i><tt>'replace'</tt></i> is the
68 URI of the replacement entity to be used. The
MDT 2001 John Fleck60416fa2001-10-09 02:41:50 +000069 <tt>--add</tt> option will not overwrite
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +000070 <i><tt>filename</tt></i>, outputing to stdout, unless
71 <tt>--noout</tt> is used. The <tt>--add</tt> will always
72 take three parameters even if some of the XML catalog
73 constructs will have only a single argument.
MDT 2001 John Fleck5bd39dc2001-09-03 15:14:19 +000074
MDT 2001 John Fleck60416fa2001-10-09 02:41:50 +000075 </p>
76<p>
77 If the <tt>--add</tt> option is used following the
78 <tt>--sgml</tt> option, only a single argument, a
79 <i><tt>filename</tt></i>, is used. This is used to add
80 the name of a catalog file to an SGML
81 supercatalog, a file that contains references to other included
82 SGML catalog files.
83 </p>
84</dd>
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +000085<dt>
MDT 2001 John Fleck60416fa2001-10-09 02:41:50 +000086<a name="id2708168"></a><span class="term"><tt>--del</tt> <i><tt>'values'</tt></i> <i><tt>filename</tt></i></span>
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +000087</dt>
MDT 2001 John Fleck60416fa2001-10-09 02:41:50 +000088<dd>
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +000089 Remove entries from the catalog file
90 <i><tt>filename</tt></i> matching
91 <i><tt>'values'</tt></i>. The <tt>--del</tt> option
92 will not overwrite <i><tt>filename</tt></i>, outputing to
93 stdout, unless <tt>--noout</tt> is used.
MDT 2001 John Fleck60416fa2001-10-09 02:41:50 +000094 </dd>
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +000095<dt>
MDT 2001 John Fleck60416fa2001-10-09 02:41:50 +000096<a name="id2708217"></a><span class="term"><tt>--noout</tt></span>
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +000097</dt>
MDT 2001 John Fleck60416fa2001-10-09 02:41:50 +000098<dd>
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +000099 Save output to the named file rather than
100 outputing to stdout.
MDT 2001 John Fleck60416fa2001-10-09 02:41:50 +0000101 </dd>
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +0000102<dt>
MDT 2001 John Fleck60416fa2001-10-09 02:41:50 +0000103<a name="id2708237"></a><span class="term"><tt>-v</tt> or <tt>--verbose</tt></span>
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +0000104</dt>
MDT 2001 John Fleck60416fa2001-10-09 02:41:50 +0000105<dd>
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +0000106 output debugging
107 information.
MDT 2001 John Fleck60416fa2001-10-09 02:41:50 +0000108 </dd>
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +0000109</dl></div>
MDT 2001 John Fleck5bd39dc2001-09-03 15:14:19 +0000110</div>
111<div class="refsect1">
112<a name="shell"></a><h2>
113<a name="shell"></a>Shell Commands</h2>
114<p>Invoking xmlcatalog with the
115 <tt>--shell</tt> <i><tt>filename</tt></i> option opens
116 a command line shell allowing interactive access to the catalog file
117 identified by <i><tt>filename</tt></i>. Invoking the shell
118 provides a command line prompt after which commands can be entered.
119 </p>
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +0000120<div class="variablelist"><dl>
121<dt>
MDT 2001 John Fleck60416fa2001-10-09 02:41:50 +0000122<a name="id2708304"></a><span class="term"><tt>public</tt> <i><tt>'PublicID'</tt></i></span>
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +0000123</dt>
MDT 2001 John Fleck60416fa2001-10-09 02:41:50 +0000124<dd>
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +0000125 Execute a
126 public identifier lookup of the catalog entry for
127 <i><tt>'PublicID'</tt></i>. The corresponding entry will be
128 output to the command line.
MDT 2001 John Fleck60416fa2001-10-09 02:41:50 +0000129 </dd>
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +0000130<dt>
MDT 2001 John Fleck60416fa2001-10-09 02:41:50 +0000131<a name="id2708332"></a><span class="term"><tt>system</tt> <i><tt>'SystemID'</tt></i></span>
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +0000132</dt>
MDT 2001 John Fleck60416fa2001-10-09 02:41:50 +0000133<dd>
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +0000134 Execute a
135 public identifier lookup of the catalog entry for
136 <i><tt>'SystemID'</tt></i>. The corresponding entry will be
137 output to the command line.
MDT 2001 John Fleck60416fa2001-10-09 02:41:50 +0000138 </dd>
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +0000139<dt>
MDT 2001 John Fleck60416fa2001-10-09 02:41:50 +0000140<a name="id2708361"></a><span class="term"><tt>add </tt> <i><tt>'type'</tt></i> <i><tt>'orig'</tt></i> <i><tt>'replace'</tt></i></span>
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +0000141</dt>
MDT 2001 John Fleck60416fa2001-10-09 02:41:50 +0000142<dd>
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +0000143 Add an entry to the catalog
144 file. <i><tt>type</tt></i> indicates the type of
145 entry. Possible types are 'public', 'system', 'rewriteSystem',
146 'delegatePublic' and 'delegateSystem'. <i><tt>'orig'</tt></i>
147 is the original reference to be replaced, and
148 <i><tt>'replace'</tt></i> is the URI of the
149 replacement entity to be used.
MDT 2001 John Fleck60416fa2001-10-09 02:41:50 +0000150 </dd>
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +0000151<dt>
MDT 2001 John Fleck60416fa2001-10-09 02:41:50 +0000152<a name="id2708681"></a><span class="term"><tt>del</tt> <i><tt>'values'</tt></i></span>
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +0000153</dt>
MDT 2001 John Fleck60416fa2001-10-09 02:41:50 +0000154<dd>
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +0000155 Remove the
156 catalog entry corresponding to <i><tt>'values'</tt></i>.
MDT 2001 John Fleck60416fa2001-10-09 02:41:50 +0000157 </dd>
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +0000158<dt>
MDT 2001 John Fleck60416fa2001-10-09 02:41:50 +0000159<a name="id2708708"></a><span class="term"><tt>dump</tt></span>
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +0000160</dt>
MDT 2001 John Fleck60416fa2001-10-09 02:41:50 +0000161<dd>
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +0000162 Print the current catalog.
MDT 2001 John Fleck60416fa2001-10-09 02:41:50 +0000163 </dd>
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +0000164<dt>
MDT 2001 John Fleck60416fa2001-10-09 02:41:50 +0000165<a name="id2708728"></a><span class="term"><tt>debug</tt></span>
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +0000166</dt>
MDT 2001 John Fleck60416fa2001-10-09 02:41:50 +0000167<dd>
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +0000168 Print debugging statements showing the steps
169 xmlcatalog is executing.
MDT 2001 John Fleck60416fa2001-10-09 02:41:50 +0000170 </dd>
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +0000171<dt>
MDT 2001 John Fleck60416fa2001-10-09 02:41:50 +0000172<a name="id2708755"></a><span class="term"><tt>quiet</tt></span>
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +0000173</dt>
MDT 2001 John Fleck60416fa2001-10-09 02:41:50 +0000174<dd>
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +0000175 Stop printing debugging statements.
MDT 2001 John Fleck60416fa2001-10-09 02:41:50 +0000176 </dd>
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +0000177<dt>
MDT 2001 John Fleck60416fa2001-10-09 02:41:50 +0000178<a name="id2708774"></a><span class="term"><tt>exit</tt></span>
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +0000179</dt>
MDT 2001 John Fleck60416fa2001-10-09 02:41:50 +0000180<dd>
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +0000181 Quit the shell.
MDT 2001 John Fleck60416fa2001-10-09 02:41:50 +0000182 </dd>
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +0000183</dl></div>
MDT 2001 John Fleck5bd39dc2001-09-03 15:14:19 +0000184</div>
185<div class="refsect1">
186<a name="references"></a><h2>
187<a name="references"></a>References</h2>
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +0000188<div class="variablelist"><dl>
189<dt>
MDT 2001 John Fleck60416fa2001-10-09 02:41:50 +0000190<a name="id2708813"></a><span class="term">libxml web page:</span>
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +0000191</dt>
192<dd>
193 <a href="http://www.xmlsoft.org/" target="_top">http://www.xmlsoft.org/</a>
194 </dd>
195<dt>
MDT 2001 John Fleck60416fa2001-10-09 02:41:50 +0000196<a name="id2708841"></a><span class="term">libxml catalog support web page:</span>
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +0000197</dt>
198<dd>
199 <a href="http://www.xmlsoft.org/catalog.html" target="_top">http://www.xmlsoft.org/catalog.html</a>
200 </dd>
201<dt>
MDT 2001 John Fleck60416fa2001-10-09 02:41:50 +0000202<a name="id2708875"></a><span class="term">James Clark's SGML catalog page:</span>
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +0000203</dt>
204<dd>
205 <a href="http://www.jclark.com/sp/catalog.htm" target="_top">http://www.jclark.com/sp/catalog.htm</a>
206 </dd>
207<dt>
MDT 2001 John Fleck60416fa2001-10-09 02:41:50 +0000208<a name="id2708909"></a><span class="term">OASIS XML catalog specification:</span>
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +0000209</dt>
210<dd>
211 <a href="http://www.oasis-open.org/committees/entity/spec.html" target="_top">http://www.oasis-open.org/committees/entity/spec.html</a>
212 </dd>
213</dl></div>
MDT 2001 John Fleck5bd39dc2001-09-03 15:14:19 +0000214</div>
215</div></body>
216</html>