| 1 |
=head1 NAME |
| 2 |
|
| 3 |
XML::Catalog - Resolve public identifiers and remap system identifiers |
| 4 |
|
| 5 |
=head1 SYNOPSIS |
| 6 |
|
| 7 |
use XML::Catalog; |
| 8 |
my $catalog=XML::Catalog->new('/xml/catalog.cat'); |
| 9 |
$catalog->add('http://www.w3.org/xcatalog/mastercat.xml'); |
| 10 |
my $sysid=$catalog->resolve_public('-//John Cowan//LOC Diacritics'); |
| 11 |
my $newsysid=$catalog->remap_system('http://www.w3.org'); |
| 12 |
$parser->setHandlers(ExternEnt=>$catalog->get_handler($parser)); |
| 13 |
|
| 14 |
=head1 DESCRIPTION |
| 15 |
|
| 16 |
This module implements draft 0.4 of John Cowan's XML Catalog (formerly |
| 17 |
known as XCatalog) proposal |
| 18 |
(<http://www.ccil.org/~cowan/XML/XCatalog.html>). Catalogs may be written |
| 19 |
in either SOCAT or XML syntax (see the proposal for syntax details); |
| 20 |
XML::Catalog will assume SOCAT syntax if the catalog is not in well-formed |
| 21 |
XML syntax. |
| 22 |
|
| 23 |
This module, as of 1.0.0, also supports Oasis XML catalogs. |
| 24 |
|
| 25 |
=head1 AUTHOR |
| 26 |
|
| 27 |
Current Author: |
| 28 |
|
| 29 |
Jeff Fearn E<lt>[email protected]<gt>. |
| 30 |
|
| 31 |
Former Authors: |
| 32 |
|
| 33 |
Eric Bohlman ([email protected]) |
| 34 |
|
| 35 |
=head1 COPYRIGHT |
| 36 |
|
| 37 |
Copyright (c) 1999-2000 Eric Bohlman. All rights reserved. |
| 38 |
Copyright (c) 2013 Jeff Fearn. All rights reserved. |
| 39 |
|
| 40 |
This program is free software; you can use/modify/redistribute it under the |
| 41 |
same terms as Perl itself. |
| 42 |
|
| 43 |
=cut |