1 .\"Generated by db2man.xsl. Don't modify this, modify the source.
10 .de Sp \" Vertical space (when we can't use .PP)
16 .ie \\n(.$>=3 .ne \\$3
20 .TH "XMLCATALOG" 1 "" "" "xmlcatalog Manual"
22 xmlcatalog \- Command line tool to parse and manipulate XML or SGML catalog files.
26 \fBxmlcatalog\fR [\fB--shell\fR | \fB--create\fR | \fB--add \fItype\fR \fIorig\fR \fIreplace\fR\fR
27 | \fB--del \fIvalues\fR\fR | \fB--noout\fR | \fB--verbose\fR] [\fB\fIcatalogfile\fR\fR]
28 [\fB\fIentities\fR\fR]
34 xmlcatalog is a command line application allowing users to monitor and manipulate XML and SGML catalogs\&. It is included in libxml2\&.
37 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 XML and SGML files\&.
39 .SH "COMMAND LINE OPTIONS"
42 \fB--shell\fR \fIfilename\fR
43 Run a shell allowing interactive queries on catalog file \fIfilename\fR\&.
46 \fB--create\fR \fIfilename\fR
47 Create a new XML catalog\&. Outputs to stdout, ignoring \fIfilename\fR unless \fB--noout\fR is used, in which case it creates a new catalog file \fIfilename\fR\&.
50 \fB--add\fR \fI'type'\fR \fI'orig'\fR \fI'replace'\fR \fIfilename\fR
51 Add an entry to catalog file \fIfilename\fR\&. \fItype\fR indicates the type of entry\&. Possible types are 'public', 'system', 'rewriteSystem', 'delegatePublic', 'delegateSystem'amd 'rewriteURI'\&. \fI'orig'\fR is the original reference to be replaced, and \fI'replace'\fR is the URI of the replacement entity to be used\&. The \fB--add\fR option will not overwrite \fIfilename\fR, outputing to stdout, unless \fB--noout\fR is used\&. The \fB--add\fR will always take three parameters even if some of the XML catalog constructs will have only a single argument\&.
53 If the \fB--add\fR option is used following the \fB--sgml\fR option, only a single argument, a \fIfilename\fR, is used\&. This is used to add the name of a catalog file to an SGML supercatalog, a file that contains references to other included SGML catalog files\&.
56 \fB--del\fR \fI'values'\fR \fIfilename\fR
57 Remove entries from the catalog file \fIfilename\fR matching \fI'values'\fR\&. The \fB--del\fR option will not overwrite \fIfilename\fR, outputing to stdout, unless \fB--noout\fR is used\&.
61 Save output to the named file rather than outputing to stdout\&.
65 Uses SGML Super catalogs for --add and --del options
68 \fB-v\fR or \fB--verbose\fR
69 output debugging information\&.
74 Invoking xmlcatalog with the \fB--shell\fR \fIfilename\fR option opens a command line shell allowing interactive access to the catalog file identified by \fIfilename\fR\&. Invoking the shell provides a command line prompt after which commands can be entered\&.
77 \fBpublic\fR \fI'PublicID'\fR
78 Execute a public identifier lookup of the catalog entry for \fI'PublicID'\fR\&. The corresponding entry will be output to the command line\&.
81 \fBsystem\fR \fI'SystemID'\fR
82 Execute a public identifier lookup of the catalog entry for \fI'SystemID'\fR\&. The corresponding entry will be output to the command line\&.
85 \fBadd \fR \fI'type'\fR \fI'orig'\fR \fI'replace'\fR
86 Add an entry to the catalog file\&. \fItype\fR indicates the type of entry\&. Possible types are 'public', 'system', 'rewriteSystem', 'delegatePublic' and 'delegateSystem'\&. \fI'orig'\fR is the original reference to be replaced, and \fI'replace'\fR is the URI of the replacement entity to be used\&.
89 \fBdel\fR \fI'values'\fR
90 Remove the catalog entry corresponding to \fI'values'\fR\&.
94 Print the current catalog\&.
98 Print debugging statements showing the steps xmlcatalog is executing\&.
102 Stop printing debugging statements\&.
111 xmlcatalog's return codes provide information that can be used when calling it from scripts\&.
117 1: Failed to remove an entry from the catalog
120 2: Failed to save to the catalog, check file permissions
123 3: Failed to add an entry to the catalog
126 4: Failed to lookup and entry in the catalog
131 libxml web page: \fIhttp://www.xmlsoft.org/\fR
134 libxml catalog support web page:: \fIhttp://www.xmlsoft.org/catalog.html\fR
137 James Clark's SGML catalog page:: \fIhttp://www.jclark.com/sp/catalog.htm\fR
140 OASIS XML catalog specification: : \fIhttp://www.oasis-open.org/committees/entity/spec.html\fR