3 .\" Author: John Fleck <jfleck@inkstain.net>
4 .\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
6 .\" Manual: xmlcatalog Manual
10 .TH "XMLCATALOG" "1" "$Date$" "libxml2" "xmlcatalog Manual"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
25 .\" disable justification (adjust text to left margin only)
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
31 xmlcatalog \- Command line tool to parse and manipulate XML or SGML catalog files\&.
33 .HP \w'\fBxmlcatalog\fR\ 'u
34 \fBxmlcatalog\fR [\fB\-\-sgml\fR | \fB\-\-shell\fR | \fB\-\-create\fR | \fB\-\-del\ \fR\fB\fIVALUE(S)\fR\fR | [\ \fB\-\-add\ \fR\fB\fITYPE\fR\fR\fB\ \fR\fB\fIORIG\fR\fR\fB\ \fR\fB\fIREPLACE\fR\fR\fB\ \fR\ |\ \fB\-\-add\ \fR\fB\fIFILENAME\fR\fR] | \fB\-\-noout\fR | \fB\-\-no\-super\-update\fR | [\fB\-v\fR\ |\ \fB\-\-verbose\fR]] {\fICATALOGFILE\fR} {\fIENTITIES\fR...}
38 is a command line application allowing users to monitor and manipulate
42 catalogs\&. It is included in
45 Its functions can be invoked from a single command from the command line, or it can perform multiple functions in interactive mode\&. It can operate on both
53 accepts the following options (in alphabetical order):
55 \fB\-\-add \fR\fB\fITYPE\fR\fR\fB \fR\fB\fIORIG\fR\fR\fB \fR\fB\fIREPLACE\fR\fR\fB \fR
60 indicates the type of entry\&. Possible types are:
61 \fIpublic\fR, \fIsystem\fR, \fIuri\fR, \fIrewriteSystem\fR, \fIrewriteURI\fR, \fIdelegatePublic\fR, \fIdelegateSystem\fR, \fIdelegateURI\fR, \fInextCatalog\fR\&.
63 is the original reference to be replaced, and
67 of the replacement entity to be used\&. The
69 option will not overwrite
70 CATALOGFILE, outputting to
75 will always take three parameters even if some of the
77 catalog constructs will have only a single argument\&.
80 \fB\-\-add \fR\fB\fIFILENAME\fR\fR
84 option is used following the
86 option, only a single argument, a
87 \fIFILENAME\fR, is used\&. This is used to add the name of a catalog file to an
89 supercatalog, a file that contains references to other included
103 is used, in which case it creates a new catalog file
107 \fB\-\-del \fR\fB\fIVALUE(S)\fR\fR
112 \fIVALUE(S)\fR\&. The
114 option will not overwrite
115 \fICATALOGFILE\fR, outputting to
123 Save output to the named file rather than outputting to
127 \fB\-\-no\-super\-update\fR
136 Run a shell allowing interactive queries on catalog file
137 \fICATALOGFILE\fR\&. For the set of available commands see
138 the section called \(lqSHELL COMMANDS\(rq\&.
152 \fB\-v\fR, \fB\-\-verbose\fR
154 Output debugging information\&.
159 non\-interactively without a designated action (imposed with options like
160 \fB\-\-add\fR) will result in a lookup of the catalog entry for
162 in the catalog denoted with
163 \fICATALOGFILE\fR\&. The corresponding entries will be output to the command line\&. This mode of operation, together with
165 mode and non\-modifying (i\&.e\&. without
166 \fB\-\-noout\fR) direct actions, allows for a special shortcut of the void
168 specification (possibly expressed as "" in the shell environment) appointing the default system catalog\&. That simplifies the handling when its exact location is irrelevant but the respective built\-in still needs to be consulted\&.
174 \fB\-\-shell \fR\fB\fICATALOGFILE\fR\fR
175 option opens a command line shell allowing interactive access to the catalog file identified by
176 \fICATALOGFILE\fR\&. Invoking the shell provides a command line prompt after which the following commands (described in alphabetical order) can be entered\&.
178 \fBadd \fR\fB\fITYPE\fR\fR\fB \fR\fB\fIORIG\fR\fR\fB \fR\fB\fIREPLACE\fR\fR\fB \fR
180 Add an entry to the catalog file\&.
182 indicates the type of entry\&. Possible types are:
183 \fIpublic\fR, \fIsystem\fR, \fIuri\fR, \fIrewriteSystem\fR, \fIrewriteURI\fR, \fIdelegatePublic\fR, \fIdelegateSystem\fR, \fIdelegateURI\fR, \fInextCatalog\fR\&.
185 is the original reference to be replaced, and
189 of the replacement entity to be used\&. The
191 option will not overwrite
192 CATALOGFILE, outputting to
197 will always take three parameters even if some of the
199 catalog constructs will have only a single argument\&.
204 Print debugging statements showing the steps
209 \fBdel \fR\fB\fIVALUE(S)\fR\fR
211 Remove the catalog entry corresponding to
217 Print the current catalog\&.
225 \fBpublic \fR\fB\fIPUBLIC\-ID\fR\fR
227 Execute a Formal Public Identifier lookup of the catalog entry for
228 \fIPUBLIC\-ID\fR\&. The corresponding entry will be output to the command line\&.
233 Stop printing debugging statements\&.
236 \fBsystem \fR\fB\fISYSTEM\-ID\fR\fR
238 Execute a Formal Public Identifier lookup of the catalog entry for
239 \fISYSTEM\-ID\fR\&. The corresponding entry will be output to the command line\&.
243 \fBXML_CATALOG_FILES\fR
246 catalog behavior can be changed by redirecting queries to the user\*(Aqs own set of catalogs\&. This can be done by setting the
247 \fBXML_CATALOG_FILES\fR
248 environment variable to a list of catalogs\&. An empty one should deactivate loading the default
255 return codes provide information that can be used when calling it from scripts\&.
264 Failed to remove an entry from the catalog
269 Failed to save to the catalog, check file permissions
274 Failed to add an entry to the catalog
279 Failed to look up an entry in the catalog
285 More information can be found at
297 \m[blue]\fB\%http://www.xmlsoft.org/\fR\m[]
309 catalog support web page at
310 \m[blue]\fB\%http://www.xmlsoft.org/catalog.html\fR\m[]
324 \m[blue]\fB\%http://www.jclark.com/sp/catalog.htm\fR\m[]
337 catalog specification
338 \m[blue]\fB\%http://www.oasis-open.org/committees/entity/spec.html\fR\m[]
343 \fBJohn Fleck\fR <\&jfleck@inkstain\&.net\&>
349 Copyright \(co 2001, 2004