App-Changelog2x
view release on metacpan or search on metacpan
lib/App/Changelog2x.pm view on Meta::CPAN
or die "Could not resolve style '$style' to a file";
$style = $xsltc;
}
# First copy over and properly setup/escape the parameters, so that XSLT
# understands them.
%params = map { XML::LibXSLT::xpath_to_string($_ => $params->{$_}) }
(keys %$params);
# Do the steps of parsing XML documents, creating stylesheet engine and
# applying the transform. Each throws a die on error, so each has to be
# eval'd to allow for a cleaner error report:
eval {
$source = ref($xmlin) ?
$parser->parse_fh($xmlin) : $parser->parse_string($xmlin);
};
die "Error parsing input-XML content: $@" if $@;
eval {
$xsltc = ($style =~ /^<\?xml/) ?
$parser->parse_string($style) : $parser->parse_file($style);
};
( run in 0.232 second using v1.01-cache-2.11-cpan-8d75d55dd25 )