{
    "mode": "perldoc",
    "parameter": "XML::PatAct::Amsterdam",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/XML%3A%3APatAct%3A%3AAmsterdam/json",
    "generated": "2026-06-14T12:53:33Z",
    "synopsis": "use XML::PatAct::Amsterdam;\nmy $patterns = [ PATTERN => { Before => 'before',\nAfter => 'after' },\n... ];\nmy $matcher = XML::PatAct::Amsterdam->new( I<OPTIONS> );",
    "sections": {
        "NAME": {
            "content": "XML::PatAct::Amsterdam - An action module for simplistic style-sheets\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use XML::PatAct::Amsterdam;\n\nmy $patterns = [ PATTERN => { Before => 'before',\nAfter => 'after' },\n... ];\n\nmy $matcher = XML::PatAct::Amsterdam->new( I<OPTIONS> );\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "XML::PatAct::Amsterdam is a PerlSAX handler for applying pattern-action lists to XML parses or\ntrees. XML::PatAct::Amsterdam applies a very simple style sheet to an instance and outputs the\nresult. Amsterdam gets it's name from the Amsterdam SGML Parser (ASP) which inspired this\nmodule.\n\nCAUTION: Amsterdam is a very simple style module, you will run into it's limitations quickly\nwith even moderately complex XML instances, be aware of and prepared to switch to more complete\nstyle modules.\n\nNew XML::PatAct::Amsterdam instances are creating by calling `new()'. Parameters can be passed\nas a list of key, value pairs or a hash. A Patterns and Matcher options are required. The\nfollowing *OPTIONS* are supported:\n\nPatterns\nThe pattern-action list to apply. The list is an anonymous array of pattern, action pairs.\nEach action in the list contains either or both a Before and an After string to copy to the\noutput before and after processing an XML element. The Before and After strings may contain\nattribute names enclosed in square brackets (`\"[\"' *NAME* `\"]\"'), these are replaced with\nthe value of the attribute with that name. The special *NAME* `\"element\"' will be replaced\nwith the element's name.\n\nMatcher\nAn instance of the pattern or query matching module.\n\nOutput\nAn IO::Handle or one of it's subclasses (such as IO::File), if this parameter is not present\nand the AsString option is not used, the module will write to standard output.\n\nAsString\nReturn the generated output as a string from the `\"parse()\"' method of the PerlSAX event\ngenerator.\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Ken MacLeod, ken@bitsko.slc.ut.us\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "",
            "subsections": [
                {
                    "name": "perl",
                    "content": "``Using PatAct Modules'' and ``Creating PatAct Modules'' in libxml-perl.\n"
                }
            ]
        }
    },
    "summary": "XML::PatAct::Amsterdam - An action module for simplistic style-sheets",
    "flags": [],
    "examples": [],
    "see_also": []
}