XML::XPathScript::Processor

XML::XPathScript::Processor is the XML transformation engine in XML::XPathScript.
Download

XML::XPathScript::Processor Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • XML::XPathScript::Processor Team
  • Publisher web site:
  • http://search.cpan.org/~domq/XML-XPathScript-0.14/lib/XML/XPathScript/Processor.pm

XML::XPathScript::Processor Tags


XML::XPathScript::Processor Description

XML::XPathScript::Processor is the XML transformation engine in XML::XPathScript. XML::XPathScript::Processor is the XML transformation engine in XML::XPathScript.SYNOPSISIn a stylesheet ->{testcode} sub for e.g. Docbook's < ulink > tag: my $url = findvalue('@url',$self); if (findnodes("node()", $self)) { # ... $t->{pre}=qq'< a href="$url" >'; $t->{post}=qq'< /a >'; return DO_SELF_AND_KIDS; } else { $t->{pre}=qq'< a href="$url" >$url< /a >'; $t->{post}=qq''; return DO_SELF_ONLY; };At the stylesheet's top-level one often finds: < %= apply_templates() % >The XML::XPathScript distribution offers an XML parser glue, an embedded stylesheet language, and a way of processing an XML document into a text output. This package implements the latter part: it takes an already filled out $t template hash and an already parsed XML document (which come from XML::XPathScript behind the scenes), and provides a simple API to implement stylesheets. In particular, the "apply_templates" function triggers the recursive expansion of the whole XML document when used as shown in "SYNOPSIS".Requirements:· PerlWhat's New in This Release:· XML::XPathScript->current()->binmode() for non-UTF8 output· Renamed XML::XPathScript::Toys to XML::XPathScript::Processor· Introduction of testcode return value DO_TEXT_AS_CHILD for text nodes (see XML::XPathScript::Processor docs)· Interpolation regex is now configurable· Corrected Makefile.PL typo for XML::LibXML· General bug and typo fixes


XML::XPathScript::Processor Related Software