Taxi::Mysql::Format::HTML - hit list formatter: HTML |
Taxi::Mysql::Format::HTML - hit list formatter: HTML (via XSLTBibl)
##======================================================================== ## PRELIMINARIES
use Taxi::Mysql::Format::HTML;
##======================================================================== ## Constructors etc.
$q = $CLASS_OR_OBJ->new(%args);
##======================================================================== ## API: Transformation
\%params = $fmt->xsltParams($hitList);
##======================================================================== ## API: stylesheet
$style = $fmt->stylesheet($hl); $styleString = $fmt->styleString(); $xslNamespaceFragement = $fmt->htmlTemplateNS(); $xslParamsFragment = $fmt->htmlTemplateParams();
$xslFragment = $fmt->htmlTemplateOptions(); $xslFragment = $fmt->htmlTemplateRoot(); $xslFragment = $fmt->htmlTemplateHead(); $xslFragment = $fmt->htmlTemplateFoot(); $xslFragment = $fmt->htmlTemplateNoHits(); $xslFragment = $fmt->htmlTemplateHit(); $xslFragment = $fmt->htmlTemplateHitTok(); $xslFragment = $fmt->htmlTemplateHitBibl(); $xslFragment = $fmt->htmlTemplateOther();
##======================================================================== ## API
$mimeType = $fmt->contentType(); $hitElt = $fmt->hitElement($hit);
Taxi::Mysql::Format::HTML is a class for formatting HitList objects as HTML, using the Taxi::Mysql::Format::XSLTBibl module.
Taxi::Mysql::Format::XML inherits from and implements the API specified by Taxi::Mysql::Format::XSLTBibl.
$q = $CLASS_OR_OBJ->new(%args);
Object structre / known %args:
{ ##-- new options in HTML: htmlCss => \@cssURLs, htmlTitle => $htmlTitleFragment htmlIcon => \@iconSpecs, ##-- [ [$mimeType,$url], ... ] for html icons
##-- Stylesheet data parser => $xml_parser, ##-- XML::LibXML::Parser object; default = $_parser xslt => $xslt, ##-- an XML::LibXSLT object; default = (new object) styledoc => $doc, ##-- an XML::LibXML::Document for the stylesheet (see parseStyle*() methods) stylesheet => $style, ##-- an XML::LibXSLT::Stylesheet object (parsed stylesheet) params => \%params, ##-- params for $style->transform()
##-- XML formatting (from ../XML) xmlVersion => $version, ##-- output XML version (default="1.0") xmlEncoding => $encoding, ##-- output XML encoding (default="UTF-8") xmlHitListElt => $listElt, ##-- element for whole HitList (root); default='hitlist' xmlHitElt => $hitElt, ##-- element for single hits; default='hit' xmlTokElt => $tokElt, ##-- element for single tokens; default='tok' xmlHitNAttr => $hitNAttr, ##-- hit-number attribute (default="n") pretty => $level, ##-- $format argument for XML::LibXML::Document->toXXX()
##-- Source data (from ../../Format) index => $index, ##-- underlying Taxi::Mysql object }
\%params = $fmt->xsltParams($hitList);
Adds default parameters:
indexDsn ##-- DSN database identifier for associated index indexPrefix ##-- 'prefix' attribute of associated index
$style = $fmt->stylesheet($hl);
Returns a (new) stylesheet for $hl, defaults to $hl->parseStyleString($hl->styleString()).
$styleString = $fmt->styleString();
Return a (new) XSLT style string,
Defaults to $_[0]->{htmlStyleString}.
Fefault stylesheet is built from $hl->htmlTemplateXXX()
methods.
$xslNamespaceFragement = $fmt->htmlTemplateNS();
(undocumented)
$xslParamsFragment = $fmt->htmlTemplateParams();
(undocumented)
$xslFragment = $fmt->htmlTemplateOptions();
(undocumented)
$xslFragment = $fmt->htmlTemplateRoot();
(undocumented)
$xslFragment = $fmt->htmlTemplateHead();
(undocumented)
$xslFragment = $fmt->htmlTemplateFoot();
(undocumented)
$xslFragment = $fmt->htmlTemplateNoHits();
(undocumented)
$xslFragment = $fmt->htmlTemplateHit();
(undocumented)
$xslFragment = $fmt->htmlTemplateHitTok();
(undocumented)
$xslFragment = $fmt->htmlTemplateHitBibl();
(undocumented)
$xslFragment = $fmt->htmlTemplateOther();
(undocumented)
$mimeType = $fmt->contentType();
Returns 'text/html'.
$hitElt = $fmt->hitElement($hit);
Explicitly calls Taxi::Mysql::Format::XMLBibl::hitElement() to force inheritance.
Perl by Larry Wall.
Bryan Jurish <moocow@ling.uni-potsdam.de>
Copyright (C) 2006 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.8.7 or, at your option, any later version of Perl 5 you may have available.
perl(1), Taxi::Mysql(3perl), Taxi::Mysql::Format(3perl), Taxi::Mysql::Format::Base(3perl), Taxi::Mysql::Format::XMLBibl(3perl), Taxi::Mysql::Format::XSLTBibl(3perl), Taxi::Mysql::Format::Text(3perl).
Taxi::Mysql::Format::HTML - hit list formatter: HTML |