xmlcatalog(1) xmlcatalog Manual xmlcatalog(1) NNAAMMEE xmlcatalog - Command line tool to parse and manipulate XML or SGML catalog files. SSYYNNOOPPSSIISS xxmmllccaattaalloogg [----sshheellll | ----ccrreeaattee | ----aadddd _t_y_p_e _o_r_i_g _r_e_p_l_a_c_e | ----ddeell _v_a_l_u_e_s | ----nnoooouutt | ----vveerrbboossee] [_c_a_t_a_l_o_g_- _f_i_l_e] [_e_n_t_i_t_i_e_s] IINNTTRROODDUUCCTTIIOONN xmlcatalog is a command line application allowing users to monitor and manipulate XML and SGML catalogs. It is included in libxml2. 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. CCOOMMMMAANNDD LLIINNEE OOPPTTIIOONNSS ----sshheellll _f_i_l_e_n_a_m_e Run a shell allowing interactive queries on catalog file _f_i_l_e_n_a_m_e. ----ccrreeaattee _f_i_l_e_n_a_m_e Create a new XML catalog. Outputs to stdout, ignor- ing _f_i_l_e_n_a_m_e unless ----nnoooouutt is used, in which case it creates a new catalog file _f_i_l_e_n_a_m_e. ----aadddd _'_t_y_p_e_' _'_o_r_i_g_' _'_r_e_p_l_a_c_e_' _f_i_l_e_n_a_m_e Add an entry to catalog file _f_i_l_e_n_a_m_e. _t_y_p_e indi- cates the type of entry. Possible types are 'pub- lic', 'system', 'rewriteSystem', 'delegatePublic' and 'delegateSystem'. _'_o_r_i_g_' is the original refer- ence to be replaced, and _'_r_e_p_l_a_c_e_' is the URI of the replacement entity to be used. The ----aadddd option will not overwrite _f_i_l_e_n_a_m_e, outputing to stdout, unless ----nnoooouutt is used. The ----aadddd will always take three parameters even if some of the XML catalog constructs will have only a single argument. If the ----aadddd option is used following the ----ssggmmll option, only a single argument, a _f_i_l_e_n_a_m_e, 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. ----ddeell _'_v_a_l_u_e_s_' _f_i_l_e_n_a_m_e Remove entries from the catalog file _f_i_l_e_n_a_m_e matching _'_v_a_l_u_e_s_'. The ----ddeell option will not over- write _f_i_l_e_n_a_m_e, outputing to stdout, unless ----nnoooouutt is used. ----nnoooouutt Save output to the named file rather than outputing to stdout. --vv or ----vveerrbboossee output debugging information. SSHHEELLLL CCOOMMMMAANNDDSS Invoking xmlcatalog with the ----sshheellll _f_i_l_e_n_a_m_e option opens a command line shell allowing interactive access to the catalog file identified by _f_i_l_e_n_a_m_e. Invoking the shell provides a command line prompt after which commands can be entered. ppuubblliicc _'_P_u_b_l_i_c_I_D_' Execute a public identifier lookup of the catalog entry for _'_P_u_b_l_i_c_I_D_'. The corresponding entry will be output to the command line. ssyysstteemm _'_S_y_s_t_e_m_I_D_' Execute a public identifier lookup of the catalog entry for _'_S_y_s_t_e_m_I_D_'. The corresponding entry will be output to the command line. aadddd _'_t_y_p_e_' _'_o_r_i_g_' _'_r_e_p_l_a_c_e_' Add an entry to the catalog file. _t_y_p_e indicates the type of entry. Possible types are 'public', 'system', 'rewriteSystem', 'delegatePublic' and 'delegateSystem'. _'_o_r_i_g_' is the original reference to be replaced, and _'_r_e_p_l_a_c_e_' is the URI of the replacement entity to be used. ddeell _'_v_a_l_u_e_s_' Remove the catalog entry corresponding to _'_v_a_l_u_e_s_'. dduummpp Print the current catalog. ddeebbuugg Print debugging statements showing the steps xml- catalog is executing. qquuiieett Stop printing debugging statements. eexxiitt Quit the shell. RREEFFEERREENNCCEESS libxml web page: _h_t_t_p_:_/_/_w_w_w_._x_m_l_s_o_f_t_._o_r_g_/ libxml catalog support web page:: _h_t_t_p_:_/_/_w_w_w_._x_m_l_- _s_o_f_t_._o_r_g_/_c_a_t_a_l_o_g_._h_t_m_l James Clark's SGML catalog page:: _h_t_t_p_:_/_/_w_w_w_._j_c_l_a_r_k_._c_o_m_/_s_p_/_c_a_t_a_l_o_g_._h_t_m OASIS XML catalog specification: : _h_t_t_p_:_/_/_w_w_w_._o_a_s_i_s_- _o_p_e_n_._o_r_g_/_c_o_m_m_i_t_t_e_e_s_/_e_n_t_i_t_y_/_s_p_e_c_._h_t_m_l AAUUTTHHOORR Copyright 2001 John Fleck This is release 0.2 of the xmlcatalog Manual. xmlcatalog(1)