{
    "content": [
        {
            "type": "text",
            "text": "# XML::PatAct::Amsterdam (perldoc)\n\n## NAME\n\nXML::PatAct::Amsterdam - An action module for simplistic style-sheets\n\n## SYNOPSIS\n\nuse XML::PatAct::Amsterdam;\nmy $patterns = [ PATTERN => { Before => 'before',\nAfter => 'after' },\n... ];\nmy $matcher = XML::PatAct::Amsterdam->new( I<OPTIONS> );\n\n## DESCRIPTION\n\nXML::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\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **AUTHOR**\n- **SEE ALSO** (1 subsections)\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "XML::PatAct::Amsterdam",
        "section": "",
        "mode": "perldoc",
        "summary": "XML::PatAct::Amsterdam - An action module for simplistic style-sheets",
        "synopsis": "use XML::PatAct::Amsterdam;\nmy $patterns = [ PATTERN => { Before => 'before',\nAfter => 'after' },\n... ];\nmy $matcher = XML::PatAct::Amsterdam->new( I<OPTIONS> );",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 8,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 32,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 1,
                "subsections": [
                    {
                        "name": "perl",
                        "lines": 2
                    }
                ]
            }
        ],
        "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"
                    }
                ]
            }
        }
    }
}