generic_transform - generic transformation of XML
Plugin generic_transform TransformParam design fancy TransformParamQuery foo TransformParamPerl foozle "$hd->param('foozle')" TransformSkip "$_->param('format') eq 'raw'" Transformation XSLT(styles/foo.xsl,param=value) XSLT(styles/main.xsl) TAL(styles/global.html)
This plugin allows you to configure generic transformation pipelines like they were common in AxKit1. These pipelines are always static.
Specifies the transformation steps to be executed. <list> consists
of white-space separated entries of the form METHOD(PARAM,ARGS), where
METHOD is one of the known processors, like
TAL and PARAM is the stylesheet for that method.
ARGS can be
NAME=VALUE pairs (possibly quoted) or a single parameter, depending
on processor. If you use parameters of the form
NAME~VALUE, the value will
be evaluated at request time. One quite useful application is this:
In evaluated Perl code, variable
$client contains the current client object,
$hd contains the received headers object, including query parameters.
Add a constant parameter to all processors.
Pass a query parameter to all processors that take parameter pairs.
Pass a dynamically evaluated parameter to all processors that take parameter
pairs. As above,
$hd are available.
If the given expression returns a true value, the transformation is skipped entirely.