logo
Free, Micro AI Code Reviews That Run on Git Commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt

Catmandu::Fix::xml_transform - transform XML using XSLT stylesheet

Configuration

       field
           Data field to get XML from

       file
           One or more file names of optional XSLT scripts

       format
           Optional output format ("string", "struct", "simple", or "dom")

perl v5.36.0                                       2022-09-15                  Catmandu::Fix::xml_transform(3pm)

Description

       This Catmandu::Fix transforms XML with an XSLT stylesheet. Based on Catmandu::XML::Transformer the fix
       will transform and XML string into an XML string, MicroXML (XML::Struct) into MicroXML, and a DOM into a
       DOM. If the stylesheet is intented to emit text ("<xsl:output method="text"/>", however, this fix always
       transforms produces a string.

       One ore multiple XSLT scripts can be specified with argument "file".

Name

       Catmandu::Fix::xml_transform - transform XML using XSLT stylesheet

Synopsis

         # Transforms the 'xml' from marcxml to dublin core xml
         xml_transform('xml',file => 'marcxml2dc.xsl');

See Also