1 .\" ** You probably do not want to edit this file directly **
2 .\" It was generated using the DocBook XSL Stylesheets (version 1.69.1).
3 .\" Instead of manually editing it, you probably should edit the DocBook XML
4 .\" source for it and then use the DocBook XSL Stylesheets to regenerate it.
5 .TH "XMLCATALOG" "1" "$Date$" "libxml2" ""
6 .\" disable hyphenation
8 .\" disable justification (adjust text to left margin only)
11 xmlcatalog \- Command line tool to parse and manipulate XML or SGML catalog files.
14 \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...}
18 is a command line application allowing users to monitor and manipulate
22 catalogs. It is included in
25 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
33 accepts the following options (in alphabetical order):
35 \fB\-\-add \fR\fB\fITYPE\fR\fR\fB \fR\fB\fIORIG\fR\fR\fB \fR\fB\fIREPLACE\fR\fR\fB \fR
39 indicates the type of entry. Possible types are:
40 \fIpublic\fR, \fIsystem\fR, \fIrewriteSystem\fR, \fIrewriteURI\fR, \fIdelegatePublic\fR, \fIdelegateSystem\fR, \fInextCatalog\fR.
42 is the original reference to be replaced, and
46 of the replacement entity to be used. The
48 option will not overwrite
49 \fICATALOGFILE\fR, outputting to
54 will always take three parameters even if some of the
56 catalog constructs will have only a single argument.
58 \fB\-\-add \fR\fB\fIFILENAME\fR\fR
61 option is used following the
63 option, only a single argument, a
64 \fIFILENAME\fR, is used. This is used to add the name of a catalog file to an
66 supercatalog, a file that contains references to other included
74 \fIstdout\fR, ignoring
78 is used, in which case it creates a new catalog file
81 \fB\-\-del \fR\fB\fIVALUE(S)\fR\fR
87 option will not overwrite
88 \fICATALOGFILE\fR, outputting to
94 Save output to the named file rather than outputting to
97 \fB\-\-no\-super\-update\fR
103 Run a shell allowing interactive queries on catalog file
104 \fICATALOGFILE\fR. For the set of available commands see
105 the section called \(lqSHELL COMMANDS\(rq.
116 \fB\-v\fR, \fB\-\-verbose\fR
117 Output debugging information.
123 \fB\-\-shell \fR\fB\fICATALOGFILE\fR\fR
124 option opens a command line shell allowing interactive access to the catalog file identified by
125 \fICATALOGFILE\fR. Invoking the shell provides a command line prompt after which the following commands (described in alphabetical order) can be entered.
127 \fBadd \fR\fB\fITYPE\fR\fR\fB \fR\fB\fIORIG\fR\fR\fB \fR\fB\fIREPLACE\fR\fR\fB \fR
128 Add an entry to the catalog file.
130 indicates the type of entry. Possible types are:
131 \fIpublic\fR, \fIsystem\fR, \fIrewriteSystem\fR, \fIrewriteURI\fR, \fIdelegatePublic\fR, \fIdelegateSystem\fR, \fInextCatalog\fR.
133 is the original reference to be replaced, and
137 of the replacement entity to be used. The
139 option will not overwrite
140 \fICATALOGFILE\fR, outputting to
145 will always take three parameters even if some of the
147 catalog constructs will have only a single argument.
150 Print debugging statements showing the steps
154 \fBdel \fR\fB\fIVALUE(S)\fR\fR
155 Remove the catalog entry corresponding to
159 Print the current catalog.
164 \fBpublic \fR\fB\fIPUBLIC\-ID\fR\fR
165 Execute a Formal Public Identifier look\-up of the catalog entry for
166 \fIPUBLIC\-ID\fR. The corresponding entry will be output to the command line.
169 Stop printing debugging statements.
171 \fBsystem \fR\fB\fISYSTEM\-ID\fR\fR
172 Execute a Formal Public Identifier look\-up of the catalog entry for
173 \fISYSTEM\-ID\fR. The corresponding entry will be output to the command line.
176 \fBXML_CATALOG_FILES\fR
178 catalog behavior can be changed by redirecting queries to the user's own set of catalogs. This can be done by setting the
179 \fBXML_CATALOG_FILES\fR
180 environment variable to a list of catalogs. An empty one should deactivate loading the default
181 \fI/etc/xml/catalog\fR
186 return codes provide information that can be used when calling it from scripts.
192 Failed to remove an entry from the catalog
195 Failed to save to the catalog, check file permissions
198 Failed to add an entry to the catalog
201 Failed to look up an entry in the catalog
206 More information can be found at
211 \fI\%http://www.xmlsoft.org/\fR
215 catalog support web page at
216 \fI\%http://www.xmlsoft.org/catalog.html\fR
222 \fI\%http://www.jclark.com/sp/catalog.htm\fR
226 catalog specification
227 \fI\%http://www.oasis\-open.org/committees/entity/spec.html\fR
229 John Fleck <jfleck@inkstain.net>.