Apache2-AutoIndex-XSLT
view release on metacpan or search on metacpan
lib/Apache2/AutoIndex/XSLT.pm view on Meta::CPAN
require XML::LibXSLT;
require XML::LibXML;
$render = 1;
};
$r->log_error('Failed to load XML::LibXML or XML::LibXSLT modules: ', $@) if $@;
}
# Send the appropriate content type
my $content_type = $render
? 'text/html'
: 'text/xml; charset="utf-8"';
$r->content_type($content_type);
return Apache2::Const::OK if $r->header_only;
# The dir_xml subroutine will actually print and output
# all the XML DTD and XML, returning an OK if everything
# was successful.
my $rtn = Apache2::Const::SERVER_ERROR;
my $xml;
eval {
$xml = dir_xml($r,$dir_cfg,$qstring);
( run in 0.232 second using v1.01-cache-2.11-cpan-4d50c553e7e )