DTA::CAB::Format::XmlXsl - Datum parser|formatter: XML via XmlPerl and XSLT


NAME

DTA::CAB::Format::XmlXsl - Datum parser|formatter: XML via XmlPerl and XSLT

(Back to Top)


SYNOPSIS

 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();

(Back to Top)


DESCRIPTION

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.

Constructors etc.

new
 $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)
    }

Methods: XSL Utilities

stylesheet
 $style = $fmt->stylesheet($i_or_o);

(undocumented)

Methods: Input: Generic API

parseDocument
 $doc = $fmt->parseDocument();

parses buffered XML::LibXML::Document

Methods: Output: API

_xmlDocument
 $str = $fmt->_xmlDocument();

(undocumented)

toString
 $str = $fmt->toString();

$str = $fmt->toString($formatLevel) flush buffered output document to byte-string

toFh
 $fmt_or_undef = $fmt->toFh($fh,$formatLevel)

flush buffered output document to filehandle $fh

(Back to Top)


AUTHOR

Bryan Jurish <jurish@bbaw.de>

(Back to Top)


COPYRIGHT AND LICENSE

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.

(Back to Top)


SEE ALSO

dta-cab-convert.perl(1), DTA::CAB::Format::XmlPerl(3pm), DTA::CAB::Format::Builtin(3pm), DTA::CAB::Format(3pm), DTA::CAB(3pm), perl(1), ...

(Back to Top)

 DTA::CAB::Format::XmlXsl - Datum parser|formatter: XML via XmlPerl and XSLT