Remitt:: Plugin:: Render:: XSLT

Render layer plugin for XSLT transformations.  There really doesn’t have to be another plugin in use in this layer, as the fundamentals of REMITT rely on this functionality, but it is hypothetically possible to use another XSL transformation engine or another method of rendering a document.

Summary
Render layer plugin for XSLT transformations.
Perform XSL transform.
Get configuration data for this plugin.
Internal method used to read the individual configuration from an XSL transform stylesheet’s metainformation.

Functions

Remitt:: Plugin:: Render:: XSLT:: Render

sub Render

Perform XSL transform.  This is part of the Render plugin layer API.

Parameters

$inputText to be transformed
$optionOption to be passed to the XSL transformation engine.  (This is actually the XSL stylesheet to be used, without the path or .xsl suffix)

Returns

Intermediate XML file.

Remitt:: Plugin:: Render:: XSLT:: Config

Get configuration data for this plugin.  This is part of the REMITT Plugin API.  This particular function reads the information per XSL transformation stylesheet (which is stored in a specific format in the XSL comment header) and returns a hash containing the information for each sheet.

This should probably be optimized, as there is no caching presently implemented for this metainformation.

Returns

Hash of configuration data.

SeeAlso

<GetConfigFromXSL>

Remitt:: Plugin:: Render:: XSLT:: GetConfigFromXSL

Internal method used to read the individual configuration from an XSL transform stylesheet’s metainformation.

Parameters

$xslName of the XSL sheet, without the path or .xsl suffix

Returns

Hash of configuration information.

SeeAlso

<Config>

sub Render
Perform XSL transform.