CentOS 7.0 - man page for xml::catalog (centos section 3)
|Linux & Unix Commands - Search Man Pages
XML::Catalog(3) User Contributed Perl Documentation XML::Catalog(3)
XML::Catalog - Resolve public identifiers and remap system identifiers
my $sysid=$catalog->resolve_public('-//John Cowan//LOC Diacritics');
$ perl -e 'use XML::Catalog; \
$pubid = q|-//OASIS//DTD DocBook XML V4.5//EN|; \
my $catalog=XML::Catalog->new("/etc/xml/catalog"); \
print $catalog->resolve_public($pubid), "\n";'
This module implements draft 0.4 of John Cowan's XML Catalog (formerly known as XCatalog)
proposal (<http://www.ccil.org/~cowan/XML/XCatalog.html>). Catalogs may be written in
either SOCAT or XML syntax (see the proposal for syntax details); XML::Catalog will assume
SOCAT syntax if the catalog is not in well-formed XML syntax.
This module, as of 1.0.0, also supports Oasis XML catalogs.
Read the catalog identified by URL and return a catalog object implementing it. If
more than one URL is given, chain the additional catalogs as extensions to the catalog
(they will be searched before catalogs specified by EXTEND entries).
All URLs must be absolute. A URL with no protocol is treated as a filename.
Chain the catalogs identified by the URL(s) to the current catalog.
Translate the public identifier PUBID to a system identifier. Returns undef if the
identifier could not be translated.
Remap the system identifier SYSID as specified by the catalog. Returns SYSID
unchanged if no remapping was found.
Returns a coderef to a resolver suitable for use as the ExternEnt handler for an
XML::Parser object. The resolver will first attempt to resolve a public identifier if
supplied, and then attempt to remap the resulting system identifier (or the original
system identifier if no public identifier was supplied). It will then call the
original ExternEnt handler associated with the parser object. PARSER is the parser
object; it is needed as an argument in order to obtain the original handler.
add_extend_object($cat, $group )
create new catalog object
BUGS / TODO
Searching of chained catalogs is not purely depth-first (EXTEND items in a chained catalog
will be searched before EXTEND items in the original catalog.
Error checking leaves much to be desired.
Jeff Fearn E<lt>email@example.comE<gt>.
Eric Bohlman E<lt>firstname.lastname@example.orgE<gt>.
Copyright (c) 1999-2000 Eric Bohlman. All rights reserved. Copyright (c) 2013 Jeff
Fearn. All rights reserved.
This program is free software; you can use/modify/redistribute it under the same terms as
perl v5.16.3 2013-10-28 XML::Catalog(3)
All times are GMT -4. The time now is 01:04 AM.