XML::Pa...sterdam(3)
π NAME π
okay so this is XML::Pa...sterdam(3) β User Contributed Perl Documentation β and the module itself is XML::PatAct::Amsterdam, an action module for simplistic style-sheets. β¨
πΈ SYNOPSIS πΈ
use XML::PatAct::Amsterdam;
my $patterns = [ PATTERN => { Before => 'before',
After => 'after' },
... ];
my $matcher = XML::PatAct::Amsterdam->new( I<OPTIONS> );
π¦ DESCRIPTION π¦
XML::PatAct::Amsterdam is a PerlSAX handler for applying pattern-action lists to XML parses or trees. It applies a very simple style sheet to an instance and outputs the result. Amsterdam gets its name from the Amsterdam SGML Parser (ASP), which inspired this module. π
β οΈ CAUTION: Amsterdam is a very simple style module β you will run into its limitations quickly with even moderately complex XML instances. Be aware of that and be prepared to switch to more complete style modules. π
New XML::PatAct::Amsterdam instances get created by calling new(). Parameters can be passed as a list of key, value pairs or a hash. The Patterns and Matcher options are required. The following OPTIONS are supported:
Patternsβ the pattern-action list to apply. The list is an anonymous array of pattern, action pairs. Each action in the list contains either or both aBeforeand anAfterstring to copy to the output before and after processing an XML element. TheBeforeandAfterstrings may contain attribute names enclosed in square brackets ("["NAME"]"), and these are replaced with the value of the attribute with that name. The special NAME"_element"will be replaced with the elementβs name. πMatcherβ an instance of the pattern or query matching module. π§Outputβ anIO::Handleor one of its subclasses (such asIO::File). If this parameter is not present and theAsStringoption is not used, the module will write to standard output. πAsStringβ return the generated output as a string from theparse()method of the PerlSAX event generator. π¦
π AUTHOR π
Ken MacLeod, ken@bitsko.slc.ut.us π
π SEE ALSO π
perl(1)- βUsing PatAct Modulesβ and βCreating PatAct Modulesβ in libxml-perl. π
okay thatβs the whole page bestie π β itβs from perl v5.42.0, dated 2024-03-04, and the header title is XML::Pa...sterdam(3) β¨ periodt.
π¦ where this page comes from
- opensuse-leap 16.0: perl-libxml-perl 0.08-160000.2.2 Β· Artistic-1.0 OR GPL-2.0-or-later
- opensuse-leap 16.0: perl-libxml-perl 0.08-160000.2.2 Β· Artistic-1.0 OR GPL-2.0-or-later
- opensuse-leap 16.0: perl-libxml-perl 0.08-160000.2.2 Β· Artistic-1.0 OR GPL-2.0-or-later
- opensuse-leap 16.0: perl-libxml-perl 0.08-160000.2.2 Β· Artistic-1.0 OR GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms