blob: 190c1d28c43ccea24d1eb5e1842185437fd7bc67 [file] [log] [blame]
MDT 2001 John Fleck5bd39dc2001-09-03 15:14:19 +00001.\"
2.\" This page was created on 2001-09-03 9:00:42 by makeman.pl
3.\" ``makeman.pl'' is part of the ``MakeMan'' project.
4.\" For more information, please see http://mama.sourceforge.net
5.\"
6.TH xmlcatalog 1
7
8.SH NAME
9xmlcatalog \- Command line tool to parse and manipulate XML or SGML catalog files.
10
11.SH SYNOPSIS
12\fBxmlcatalog\fR
13[ \fI\-\-shell\fR ] [ \fI\-\-create\fR ] [ \fI\-\-add \fR ] [ \fI\-\-del \fR ] [ \fI\-\-noout\fR ] [ \fI\-\-verbose\fR ] [ \fIcatalogfile\fR ] [ \fIentities\fR ]
14
15.SH "Introduction"
16
17.PP
18
19xmlcatalog is a command line application
20allowing users to monitor and manipulate XML and
21SGML catalogs. It is included in
22libxml2.
23
24
25.PP
26
27Its functions can be invoked from a single command from the command line,
28or it can perform multiple functions in interactive mode. It can operate
29on both XML and SGML files.
30
31
32.SH "Command Line Options"
33
34.PP
35
36\-\-shell \fIfilename\fR \- Run a shell
37allowing interactive queries on catalog file
38\fIfilename\fR.
39
40
41.PP
42
43\-\-create \fIfilename\fR \- Create a new
44XML catalog. Outputs to stdout, ignoring
45\fIfilename\fR unless \-\-noout is
46used, in which case it creates a new catalog file
47\fIfilename\fR.
48
49
50.PP
51
52\-\-add \fI'type'\fR
53\fI'orig'\fR \fI'replace'\fR
54\fIfilename\fR \- Add an entry to catalog file
55\fIfilename\fR. \fItype\fR indicates
56the type of entry. Possible types are 'public', 'system', 'rewriteSystem',
57'delegatePublic' and 'delegateSystem'. \fI'orig'\fR
58is the original reference to
59be replaced, and \fI'replace'\fR is the
60URI of the replacement entity to be used. The
61\-add option will not overwrite
62\fIfilename\fR, outputing to stdout, unless
63\-\-noout is used. The \-\-add will always
64take three parameters even if some of the XML catalog
65constructs will have only a single argument.
66
67
68.PP
69
70\-\-del \fI'values'\fR
71\fIfilename\fR \- Remove entries from the catalog file
72\fIfilename\fR matching
73\fI'values'\fR. The \-\-del option
74will not overwrite \fIfilename\fR, outputing to
75stdout, unless \-\-noout is used.
76
77
78.PP
79
80\-\-noout \- Save output to the named file rather than
81outputing to stdout.
82
83
84.PP
85
86\-v or \-\-verbose \- output debugging
87information.
88
89
90.SH "Shell Commands"
91
92.PP
93Invoking xmlcatalog with the
94\-\-shell \fIfilename\fR option opens
95a command line shell allowing interactive access to the catalog file
96identified by \fIfilename\fR. Invoking the shell
97provides a command line prompt after which commands can be entered.
98
99
100.PP
101
102public \fI'PublicID'\fR \- Execute a
103public identifier lookup of the catalog entry for
104\fI'PublicID'\fR. The corresponding entry will be
105output to the command line.
106
107
108.PP
109 system \fI'SystemID'\fR \- Execute a
110public identifier lookup of the catalog entry for
111\fI'SystemID'\fR. The corresponding entry will be
112output to the command line.
113
114
115.PP
116
117add \fI'type'\fR
118\fI'orig'\fR \fI'replace'\fR \-
119Add an entry to the catalog
120file. \fItype\fR indicates the type of
121entry. Possible types are 'public', 'system', 'rewriteSystem',
122'delegatePublic' and 'delegateSystem'. \fI'orig'\fR
123is the original reference to be replaced, and
124\fI'replace'\fR is the URI of the
125replacement entity to be used.
126
127
128.PP
129
130del \fI'values'\fR \- Remove the
131catalog entry corresponding to \fI'values'\fR.
132
133
134.PP
135
136dump \- Print the current catalog.
137
138
139.PP
140
141debug \- Print debugging statements showing the steps
142xmlcatalog is executing.
143
144
145.PP
146
147quiet \- Stop printing debugging statements.
148
149
150.PP
151
152exit \- Quit the shell.
153
154
155.SH "References"
156
157.PP
158
159.IP
160libxml web page: http://www.xmlsoft.org/ (Link to \fIhttp://www.xmlsoft.org/\fR)
161
162.IP
163
164libxml catalog support web page: http://www.xmlsoft.org/catalog.html (Link to \fIhttp://www.xmlsoft.org/catalog.html\fR)
165
166.IP
167
168James Clark's SGML catalog page: http://www.jclark.com/sp/catalog.htm (Link to \fIhttp://www.jclark.com/sp/catalog.htm\fR)
169
170.IP
171
172OASIS XML catalog
173specification: http://www.oasis\-open.org/committees/entity/spec.html (Link to \fIhttp://www.oasis-open.org/committees/entity/spec.html\fR)
174
175
176