{
    "mode": "perldoc",
    "parameter": "XML::LibXSLT::Quick",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXSLT%3A%3AQuick/json",
    "generated": "2026-10-04T18:39:01Z",
    "synopsis": "use XML::LibXSLT::Quick ();\nmy $stylesheet =\nXML::LibXSLT::Quick->new( { location => 'example/1.xsl', } );\nmy $xml1text = utf8slurp('example/1.xml');\nmy $outfn = 'foo.xml';\n$stylesheet->generictransform(\n+{\ntype => 'file',\npath => $outfn,\n},\n$xml1text,\n);",
    "sections": {
        "NAME": {
            "content": "XML::LibXSLT::Quick - an easier to use (= \"quicker\") interface to XML::LibXSLT\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use XML::LibXSLT::Quick ();\n\nmy $stylesheet =\nXML::LibXSLT::Quick->new( { location => 'example/1.xsl', } );\nmy $xml1text = utf8slurp('example/1.xml');\nmy $outfn = 'foo.xml';\n$stylesheet->generictransform(\n+{\ntype => 'file',\npath => $outfn,\n},\n$xml1text,\n);\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This is a module that wraps XML::LibXSLT with an easier to use interface.\n\nIt can be used to process XML documents using XSLT (Extensible Stylesheet Language\nTransformations) <https://en.wikipedia.org/wiki/XSLT> stylesheets.\n",
            "subsections": []
        },
        "METHODS": {
            "content": "XML::LibXSLT::Quick->new({ location=>\"./xslt/my.xslt\", });\nTBD.\n\n$obj->stylesheet()\nThe result of parsestylesheet().\n\n$obj->xmlparser()\nThe XML::LibXML instance.\n\n$obj->generictransform($dest, $source)\nTo be discussed.\n\nSee \"t/using-quick-wrapper.t\" .\n\n$dest can be:\n\n\"\\$mystringvar\"\n\n\"{type => 'dom', }\" - the DOM will be returned.\n\n\"{type => 'path', path => $filepath, }\" - the output string will be written to $filepath .\n\n\"{type => 'return', }\" - the output string will be returned.\n\n$source can be:\n\nA string.\n\n\"{type => 'file', path => $filepath, params => +{}, }\" - the file will be parsed.\n\n\"{type => 'string', string => $myxmlstring, params => +{}, }\" - the string will be parsed.\n\n$obj->outputaschars($dom)\n$obj->transform(...)\n$obj->transformintochars(...)\nDelegating from $obj->stylesheet() . See XML::LibXSLT .\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "XML::LibXSLT::Easy by Yuval Kogman - requires some MooseX modules.\n\nXML::LibXSLT - used as the backend of this module.\n\nCOPYRIGHT & LICENSE\nNOTE!!! : this licence applies to this file alone. The blanket licence for the distribution is\n\"same as Perl 5\".\n\n(I am not a lawyer (= \"IANAL\") / etc. )\n\nFor more information, consult:\n\n*   <https://www.shlomifish.org/philosophy/computers/open-source/foss-licences-wars/rev2/#which-\nlicence-same-as-perl>\n\n*   <https://github.com/shlomif/perl-XML-LibXSLT/issues/5>\n\n*   <https://en.wikiquote.org/w/index.php?title=RickCook&oldid=3060266>\n\n“Programming today is a race between software engineers striving to build bigger and better\nidiot-proof programs, and the Universe trying to produce bigger and better idiots. So far,\nthe Universe is winning.”\n\nCopyright 2022 by Shlomi Fish\n\nThis program is distributed under the MIT / Expat License:\n<http://www.opensource.org/licenses/mit-license.php>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software\nand associated documentation files (the \"Software\"), to deal in the Software without\nrestriction, including without limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the\nSoftware is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or\nsubstantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING\nBUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\nDAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n",
            "subsections": []
        }
    },
    "summary": "XML::LibXSLT::Quick - an easier to use (= \"quicker\") interface to XML::LibXSLT",
    "flags": [],
    "examples": [],
    "see_also": []
}