DTA::CAB::Format::XmlXsl - Datum parser|formatter: XML via XmlPerl and XSLT |
DTA::CAB::Format::XmlXsl - Datum parser|formatter: XML via XmlPerl and XSLT
use DTA::CAB::Format::XmlXsl; ##======================================================================== ## Methods $fmt = DTA::CAB::Format::XmlXsl->new(%args); $style = $fmt->stylesheet($i_or_o); $doc = $fmt->parseDocument(); $str = $fmt->_xmlDocument(); $str = $fmt->toString();
UNSTABLE
DTA::CAB::Format::XmlXsl is a DTA::CAB::Format subclass for I/O of XML document data using XSL stylesheets to map these to and from the DTA::CAB::Format::XmlPerl format class, from which it inherits.
This class is currently unused, unstable, unsupported, and unreccommended for general use. It may be revived in the future e.g. for (X)HTML pretty-printing of analyzed DTA::CAB::Document objects.
$fmt = CLASS_OR_OBJ->new(%args);
object structure: HASH ref
{ ##-- new iwhich => $which, ##-- input: xsl source type (default='file'; see DTA::CAB::Utils::xsl_stylesheet()) ixsl => $src, ##-- input: xsl source (default=undef; see DTA::CAB::Utils::xsl_stylesheet()) owhich => $which, ##-- output: xsl source type (default='file'; see DTA::CAB::Utils::xsl_stylesheet()) oxsl => $src, ##-- output: xsl source (default=undef; see DTA::CAB::Utils::xsl_stylesheet()) ## xslt => $xslt, ##-- xslt compiler object istyle => $stylesheet, ##-- input: xslt stylesheet object ostyle => $stylesheet, ##-- output: xslt stylesheet object ##-- input xdoc => $xdoc, ##-- XML::LibXML::Document xprs => $xprs, ##-- XML::LibXML parser ##-- output encoding => $inputEncoding, ##-- default: UTF-8; applies to output only! level => $level, ##-- output formatting level (default=0) }
$style = $fmt->stylesheet($i_or_o);
(undocumented)
$doc = $fmt->parseDocument();
parses buffered XML::LibXML::Document
$str = $fmt->_xmlDocument();
(undocumented)
$str = $fmt->toString();
$str = $fmt->toString($formatLevel)
flush buffered output document to byte-string
$fmt_or_undef = $fmt->toFh($fh,$formatLevel)
flush buffered output document to filehandle $fh
Bryan Jurish <jurish@bbaw.de>
Copyright (C) 2010-2011 by Bryan Jurish
This package is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available.
dta-cab-convert.perl(1), DTA::CAB::Format::XmlPerl(3pm), DTA::CAB::Format::Builtin(3pm), DTA::CAB::Format(3pm), DTA::CAB(3pm), perl(1), ...
DTA::CAB::Format::XmlXsl - Datum parser|formatter: XML via XmlPerl and XSLT |