MDT 2001 John Fleck | 5bd39dc | 2001-09-03 15:14:19 +0000 | [diff] [blame^] | 1 | .\" |
| 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 |
| 9 | xmlcatalog \- 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 | |
| 19 | xmlcatalog is a command line application |
| 20 | allowing users to monitor and manipulate XML and |
| 21 | SGML catalogs. It is included in |
| 22 | libxml2. |
| 23 | |
| 24 | |
| 25 | .PP |
| 26 | |
| 27 | Its functions can be invoked from a single command from the command line, |
| 28 | or it can perform multiple functions in interactive mode. It can operate |
| 29 | on both XML and SGML files. |
| 30 | |
| 31 | |
| 32 | .SH "Command Line Options" |
| 33 | |
| 34 | .PP |
| 35 | |
| 36 | \-\-shell \fIfilename\fR \- Run a shell |
| 37 | allowing interactive queries on catalog file |
| 38 | \fIfilename\fR. |
| 39 | |
| 40 | |
| 41 | .PP |
| 42 | |
| 43 | \-\-create \fIfilename\fR \- Create a new |
| 44 | XML catalog. Outputs to stdout, ignoring |
| 45 | \fIfilename\fR unless \-\-noout is |
| 46 | used, 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 |
| 56 | the type of entry. Possible types are 'public', 'system', 'rewriteSystem', |
| 57 | 'delegatePublic' and 'delegateSystem'. \fI'orig'\fR |
| 58 | is the original reference to |
| 59 | be replaced, and \fI'replace'\fR is the |
| 60 | URI 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 |
| 64 | take three parameters even if some of the XML catalog |
| 65 | constructs 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 |
| 74 | will not overwrite \fIfilename\fR, outputing to |
| 75 | stdout, unless \-\-noout is used. |
| 76 | |
| 77 | |
| 78 | .PP |
| 79 | |
| 80 | \-\-noout \- Save output to the named file rather than |
| 81 | outputing to stdout. |
| 82 | |
| 83 | |
| 84 | .PP |
| 85 | |
| 86 | \-v or \-\-verbose \- output debugging |
| 87 | information. |
| 88 | |
| 89 | |
| 90 | .SH "Shell Commands" |
| 91 | |
| 92 | .PP |
| 93 | Invoking xmlcatalog with the |
| 94 | \-\-shell \fIfilename\fR option opens |
| 95 | a command line shell allowing interactive access to the catalog file |
| 96 | identified by \fIfilename\fR. Invoking the shell |
| 97 | provides a command line prompt after which commands can be entered. |
| 98 | |
| 99 | |
| 100 | .PP |
| 101 | |
| 102 | public \fI'PublicID'\fR \- Execute a |
| 103 | public identifier lookup of the catalog entry for |
| 104 | \fI'PublicID'\fR. The corresponding entry will be |
| 105 | output to the command line. |
| 106 | |
| 107 | |
| 108 | .PP |
| 109 | system \fI'SystemID'\fR \- Execute a |
| 110 | public identifier lookup of the catalog entry for |
| 111 | \fI'SystemID'\fR. The corresponding entry will be |
| 112 | output to the command line. |
| 113 | |
| 114 | |
| 115 | .PP |
| 116 | |
| 117 | add \fI'type'\fR |
| 118 | \fI'orig'\fR \fI'replace'\fR \- |
| 119 | Add an entry to the catalog |
| 120 | file. \fItype\fR indicates the type of |
| 121 | entry. Possible types are 'public', 'system', 'rewriteSystem', |
| 122 | 'delegatePublic' and 'delegateSystem'. \fI'orig'\fR |
| 123 | is the original reference to be replaced, and |
| 124 | \fI'replace'\fR is the URI of the |
| 125 | replacement entity to be used. |
| 126 | |
| 127 | |
| 128 | .PP |
| 129 | |
| 130 | del \fI'values'\fR \- Remove the |
| 131 | catalog entry corresponding to \fI'values'\fR. |
| 132 | |
| 133 | |
| 134 | .PP |
| 135 | |
| 136 | dump \- Print the current catalog. |
| 137 | |
| 138 | |
| 139 | .PP |
| 140 | |
| 141 | debug \- Print debugging statements showing the steps |
| 142 | xmlcatalog is executing. |
| 143 | |
| 144 | |
| 145 | .PP |
| 146 | |
| 147 | quiet \- Stop printing debugging statements. |
| 148 | |
| 149 | |
| 150 | .PP |
| 151 | |
| 152 | exit \- Quit the shell. |
| 153 | |
| 154 | |
| 155 | .SH "References" |
| 156 | |
| 157 | .PP |
| 158 | |
| 159 | .IP |
| 160 | libxml web page: http://www.xmlsoft.org/ (Link to \fIhttp://www.xmlsoft.org/\fR) |
| 161 | |
| 162 | .IP |
| 163 | |
| 164 | libxml catalog support web page: http://www.xmlsoft.org/catalog.html (Link to \fIhttp://www.xmlsoft.org/catalog.html\fR) |
| 165 | |
| 166 | .IP |
| 167 | |
| 168 | James 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 | |
| 172 | OASIS XML catalog |
| 173 | specification: http://www.oasis\-open.org/committees/entity/spec.html (Link to \fIhttp://www.oasis-open.org/committees/entity/spec.html\fR) |
| 174 | |
| 175 | |
| 176 | |