components/libxml2/xmlcatalog.1
changeset 148 33ca3897ae25
child 181 87e11e685b1f
equal deleted inserted replaced
147:5af6875cbf70 148:33ca3897ae25
       
     1 .TH xmlcatalog 1 "Nov 26 2001"
       
     2 .SH NAME
       
     3 xmlcatalog \- Command line tool to parse and manipulate XML or SGML catalog files.
       
     4 .SH "SYNOPSIS"
       
     5 \fBxmlcatalog\fR [\fB--shell\fR | \fB--create\fR | \fB--add  \fItype\fR 
       
     6 	   \fIorig\fR   \fIreplace\fR \fR | \fB--del  \fIvalues\fR \fR | \fB--noout\fR | \fB--verbose\fR] [\fB\fIcatalogfile\fR\fR] [\fB\fIentities\fR\fR]
       
     7 .SH "INTRODUCTION"
       
     8 
       
     9 .PP
       
    10 xmlcatalog is a command line application allowing users to monitor and manipulate XML and SGML catalogs. It is included in libxml2.
       
    11 .PP
       
    12 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.
       
    13 .SH "COMMAND LINE OPTIONS"
       
    14 
       
    15 .TP
       
    16 \fB--shell\fR \fIfilename\fR
       
    17 Run a shell allowing interactive queries on catalog file \fIfilename\fR.
       
    18 .TP
       
    19 \fB--create\fR \fIfilename\fR
       
    20 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.
       
    21 .TP
       
    22 \fB--add\fR \fI'type'\fR \fI'orig'\fR \fI'replace'\fR \fIfilename\fR
       
    23 Add an entry to catalog file \fIfilename\fR. \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. 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.
       
    24 
       
    25 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.
       
    26 .TP
       
    27 \fB--del\fR \fI'values'\fR \fIfilename\fR
       
    28 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.
       
    29 .TP
       
    30 \fB--noout\fR
       
    31 Save output to the named file rather than outputing to stdout.
       
    32 .TP
       
    33 \fB-v\fR or \fB--verbose\fR
       
    34 Output debugging information.
       
    35 .SH "SHELL COMMANDS"
       
    36 .PP
       
    37 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.
       
    38 .TP
       
    39 \fBpublic\fR \fI'PublicID'\fR
       
    40 Execute a public identifier lookup of the catalog entry for \fI'PublicID'\fR. The corresponding entry will be output to the command line.
       
    41 .TP
       
    42 \fBsystem\fR \fI'SystemID'\fR
       
    43 Execute a public identifier lookup of the catalog entry for \fI'SystemID'\fR. The corresponding entry will be output to the command line.
       
    44 .TP
       
    45 \fBadd \fR \fI'type'\fR \fI'orig'\fR \fI'replace'\fR
       
    46 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.
       
    47 .TP
       
    48 \fBdel\fR \fI'values'\fR
       
    49 Remove the catalog entry corresponding to \fI'values'\fR.
       
    50 .TP
       
    51 \fBdump\fR
       
    52 Print the current catalog.
       
    53 .TP
       
    54 \fBdebug\fR
       
    55 Print debugging statements showing the steps xmlcatalog is executing.
       
    56 .TP
       
    57 \fBquiet\fR
       
    58 Stop printing debugging statements.
       
    59 .TP
       
    60 \fBexit\fR
       
    61 Quit the shell.
       
    62 .SH "REFERENCES"
       
    63 
       
    64 .TP
       
    65 libxml web page:
       
    66 http://www.xmlsoft.org/
       
    67 .TP
       
    68 libxml catalog support web page:
       
    69 http://www.xmlsoft.org/catalog.html
       
    70 .TP
       
    71 James Clark's SGML catalog page:
       
    72 http://www.jclark.com/sp/catalog.htm
       
    73 .TP
       
    74 OASIS XML catalog specification:
       
    75 http://www.oasis-open.org/committees/entity/spec.html
       
    76 
       
    77 .SH AUTHOR
       
    78 John Fleck  <[email protected]>
       
    79 This is release 0.2 of the xmlcatalog Manual.
       
    80 
       
    81 .SH NOTES
       
    82 Source for libxml is available on http://opensolaris.org.
       
    83 Documentation for libxml is available on-line at http://www.xmlsoft.org/