NAME

Catmandu::XML::Transformer - Utility module for XSLT processing

VERSION

version 0.14

SYNOPISIS

my $transformer = Catamandu::XML::Transformer->new( stylesheet => 'file.xsl' );

$xml_string = $transformer->transform( $xml_string );
$xml_dom    = $transformer->transform( $xml_dom );
$xml_struct = $transformer->transform( $xml_struct );

CONFIGURATION

stylesheet

XSLT file, comma-separated list of files or array reference with multiple files to apply as transformation pipeline. If no stylesheet is given, the input document will just as DOM, string, or structure/simple (XML::Struct).

output_format

Expected output format DOM, string, struct, simple. By default the input format triggers the output format. If the last stylesheet has text output (<xsl:output method="text"/>) then output format is always string.

AUTHOR

Jakob Voß

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by Jakob Voß.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.