blob: 8e4a1eea0efce3c14fb1ba874e747883e5938fb1 [file] [log] [blame]
MST 2003 John Fleck937362d2003-01-27 00:04:32 +00001.\"Generated by db2man.xsl. Don't modify this, modify the source.
MDT 2001 John Fleck9f82dc62001-10-06 02:40:10 +00002.de Sh \" Subsection
3.br
4.if t .Sp
5.ne 5
6.PP
7\fB\\$1\fR
8.PP
9..
10.de Sp \" Vertical space (when we can't use .PP)
11.if t .sp .5v
12.if n .sp
13..
14.de Ip \" List item
15.br
16.ie \\n(.$>=3 .ne \\$3
17.el .ne 3
18.IP "\\$1" \\$2
19..
MST 2003 John Fleck937362d2003-01-27 00:04:32 +000020.TH "XMLCATALOG" 1 "" "" "xmlcatalog Manual"
MDT 2001 John Fleck5bd39dc2001-09-03 15:14:19 +000021.SH NAME
MST 2003 John Fleck937362d2003-01-27 00:04:32 +000022xmlcatalog \- Command line tool to parse and manipulate XML or SGML catalog files.
MDT 2001 John Fleck9f82dc62001-10-06 02:40:10 +000023.SH "SYNOPSIS"
MST 2003 John Fleck937362d2003-01-27 00:04:32 +000024
25.nf
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]
29.fi
30
MDT 2001 John Fleck9f82dc62001-10-06 02:40:10 +000031.SH "INTRODUCTION"
MDT 2001 John Fleck5bd39dc2001-09-03 15:14:19 +000032
33.PP
MST 2003 John Fleck937362d2003-01-27 00:04:32 +000034 xmlcatalog is a command line application allowing users to monitor and manipulate XML and SGML catalogs\&. It is included in libxml2\&.
MDT 2001 John Fleck5bd39dc2001-09-03 15:14:19 +000035
36.PP
MST 2003 John Fleck937362d2003-01-27 00:04:32 +000037Its 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\&.
MDT 2001 John Fleck5bd39dc2001-09-03 15:14:19 +000038
MDT 2001 John Fleck9f82dc62001-10-06 02:40:10 +000039.SH "COMMAND LINE OPTIONS"
MDT 2001 John Fleck5bd39dc2001-09-03 15:14:19 +000040
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +000041.TP
42\fB--shell\fR \fIfilename\fR
MST 2003 John Fleck937362d2003-01-27 00:04:32 +000043Run a shell allowing interactive queries on catalog file \fIfilename\fR\&.
MDT 2001 John Fleck5bd39dc2001-09-03 15:14:19 +000044
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +000045.TP
46\fB--create\fR \fIfilename\fR
MST 2003 John Fleck937362d2003-01-27 00:04:32 +000047Create 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\&.
MDT 2001 John Fleck5bd39dc2001-09-03 15:14:19 +000048
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +000049.TP
50\fB--add\fR \fI'type'\fR \fI'orig'\fR \fI'replace'\fR \fIfilename\fR
MST 2003 John Fleck937362d2003-01-27 00:04:32 +000051Add 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\&.
MDT 2001 John Fleck0e229932001-10-07 22:46:00 +000052
MST 2003 John Fleck937362d2003-01-27 00:04:32 +000053If 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\&.
MDT 2001 John Fleck5bd39dc2001-09-03 15:14:19 +000054
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +000055.TP
56\fB--del\fR \fI'values'\fR \fIfilename\fR
MST 2003 John Fleck937362d2003-01-27 00:04:32 +000057Remove 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\&.
MDT 2001 John Fleck5bd39dc2001-09-03 15:14:19 +000058
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +000059.TP
60\fB--noout\fR
MST 2003 John Fleck937362d2003-01-27 00:04:32 +000061Save output to the named file rather than outputing to stdout\&.
MDT 2001 John Fleck0e229932001-10-07 22:46:00 +000062
MST 2003 John Fleck937362d2003-01-27 00:04:32 +000063.TP
64\fB--sgml\fR
65Uses SGML Super catalogs for --add and --del options
MDT 2001 John Fleck5bd39dc2001-09-03 15:14:19 +000066
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +000067.TP
68\fB-v\fR or \fB--verbose\fR
MST 2003 John Fleck937362d2003-01-27 00:04:32 +000069output debugging information\&.
MDT 2001 John Fleck5bd39dc2001-09-03 15:14:19 +000070
MDT 2001 John Fleck9f82dc62001-10-06 02:40:10 +000071.SH "SHELL COMMANDS"
MDT 2001 John Fleck5bd39dc2001-09-03 15:14:19 +000072
73.PP
MST 2003 John Fleck937362d2003-01-27 00:04:32 +000074Invoking 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\&.
MDT 2001 John Fleck5bd39dc2001-09-03 15:14:19 +000075
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +000076.TP
77\fBpublic\fR \fI'PublicID'\fR
MST 2003 John Fleck937362d2003-01-27 00:04:32 +000078Execute a public identifier lookup of the catalog entry for \fI'PublicID'\fR\&. The corresponding entry will be output to the command line\&.
MDT 2001 John Fleck5bd39dc2001-09-03 15:14:19 +000079
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +000080.TP
81\fBsystem\fR \fI'SystemID'\fR
MST 2003 John Fleck937362d2003-01-27 00:04:32 +000082Execute a public identifier lookup of the catalog entry for \fI'SystemID'\fR\&. The corresponding entry will be output to the command line\&.
MDT 2001 John Fleck5bd39dc2001-09-03 15:14:19 +000083
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +000084.TP
85\fBadd \fR \fI'type'\fR \fI'orig'\fR \fI'replace'\fR
MST 2003 John Fleck937362d2003-01-27 00:04:32 +000086Add 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\&.
MDT 2001 John Fleck5bd39dc2001-09-03 15:14:19 +000087
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +000088.TP
89\fBdel\fR \fI'values'\fR
MST 2003 John Fleck937362d2003-01-27 00:04:32 +000090Remove the catalog entry corresponding to \fI'values'\fR\&.
MDT 2001 John Fleck5bd39dc2001-09-03 15:14:19 +000091
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +000092.TP
93\fBdump\fR
MST 2003 John Fleck937362d2003-01-27 00:04:32 +000094Print the current catalog\&.
MDT 2001 John Fleck5bd39dc2001-09-03 15:14:19 +000095
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +000096.TP
97\fBdebug\fR
MST 2003 John Fleck937362d2003-01-27 00:04:32 +000098Print debugging statements showing the steps xmlcatalog is executing\&.
MDT 2001 John Fleck5bd39dc2001-09-03 15:14:19 +000099
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +0000100.TP
101\fBquiet\fR
MST 2003 John Fleck937362d2003-01-27 00:04:32 +0000102Stop printing debugging statements\&.
MDT 2001 John Fleck5bd39dc2001-09-03 15:14:19 +0000103
MDT 2001 John Fleckac941e32001-10-06 22:30:16 +0000104.TP
105\fBexit\fR
MST 2003 John Fleck937362d2003-01-27 00:04:32 +0000106Quit the shell\&.
MDT 2001 John Fleck0e229932001-10-07 22:46:00 +0000107
MST 2003 John Fleck937362d2003-01-27 00:04:32 +0000108.SH "RETURN VALUES"
109
110.PP
111xmlcatalog's return codes provide information that can be used when calling it from scripts\&.
112
113.PP
1140: normal
115
116.PP
1171: Failed to remove an entry from the catalog
118
119.PP
1202: Failed to save to the catalog, check file permissions
121
122.PP
1233: Failed to add an entry to the catalog
124
125.PP
1264: Failed to lookup and entry in the catalog
MDT 2001 John Fleck5bd39dc2001-09-03 15:14:19 +0000127
MDT 2001 John Fleck9f82dc62001-10-06 02:40:10 +0000128.SH "REFERENCES"
MDT 2001 John Fleck5bd39dc2001-09-03 15:14:19 +0000129
MST 2001 John Fleck3fc555e2001-12-11 04:41:24 +0000130.PP
131libxml web page: \fIhttp://www.xmlsoft.org/\fR
MDT 2001 John Fleck0e229932001-10-07 22:46:00 +0000132
MST 2001 John Fleck3fc555e2001-12-11 04:41:24 +0000133.PP
134libxml catalog support web page:: \fIhttp://www.xmlsoft.org/catalog.html\fR
MDT 2001 John Fleck0e229932001-10-07 22:46:00 +0000135
MST 2001 John Fleck3fc555e2001-12-11 04:41:24 +0000136.PP
137James Clark's SGML catalog page:: \fIhttp://www.jclark.com/sp/catalog.htm\fR
MDT 2001 John Fleck0e229932001-10-07 22:46:00 +0000138
MST 2001 John Fleck3fc555e2001-12-11 04:41:24 +0000139.PP
140OASIS XML catalog specification: : \fIhttp://www.oasis-open.org/committees/entity/spec.html\fR
MDT 2001 John Fleck0e229932001-10-07 22:46:00 +0000141
MDT 2001 John Fleck9f82dc62001-10-06 02:40:10 +0000142.SH AUTHOR
MST 2003 John Fleck937362d2003-01-27 00:04:32 +0000143John Fleck.