XML::PatAct::Amsterdam(3pm) | User Contributed Perl Documentation | XML::PatAct::Amsterdam(3pm) |
XML::PatAct::Amsterdam - An action module for simplistic style-sheets
use XML::PatAct::Amsterdam; my $patterns = [ PATTERN => { Before => 'before', After => 'after' }, ... ]; my $matcher = XML::PatAct::Amsterdam->new( I<OPTIONS> );
XML::PatAct::Amsterdam is a PerlSAX handler for applying pattern-action lists to XML parses or trees. XML::PatAct::Amsterdam applies a very simple style sheet to an instance and outputs the result. Amsterdam gets it's name from the Amsterdam SGML Parser (ASP) which inspired this module.
CAUTION: Amsterdam is a very simple style module, you will run into it's limitations quickly with even moderately complex XML instances, be aware of and prepared to switch to more complete style modules.
New XML::PatAct::Amsterdam instances are creating by calling `new()'. Parameters can be passed as a list of key, value pairs or a hash. A Patterns and Matcher options are required. The following OPTIONS are supported:
Ken MacLeod, ken@bitsko.slc.ut.us
``Using PatAct Modules'' and ``Creating PatAct Modules'' in libxml-perl.
2022-12-13 | perl v5.36.0 |