Class Index | File Index

Classes


Class zwt.tpl.xsl.XSLTransformer


Extends zwt.tpl.Transformer.

XSL transformers are used to transform JSON object into XML documents with an XSL transformation.


Defined in: XSLTransformer.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
zwt.tpl.xsl.XSLTransformer(Object_xslProcessor)
Construct a XSL transformer.
Method Summary
Method Attributes Method Name and Description
 
Clear the parameters of the transformer and the underlying XLST processor.
 
setParameter(String_name, String_value)
Set the specified parameter in the underlying XSLT processor.
 
transform(Object_data)
Transform the specified object into an XML document using an XSL transformation.
 
transformIntoDocument(Object_data, Element_element)
Transform the specified object into a document fragment using an XSL transformation and append it into the document under the specified element.
Methods borrowed from class zwt.tpl.Transformer:
getParameter
Class Detail
zwt.tpl.xsl.XSLTransformer(Object_xslProcessor)
Construct a XSL transformer.
Author: Jeremy KUHN.
Parameters:
{XSLProcessor} Object_xslProcessor
An XSLT processor
Method Detail
clearParameters()
Clear the parameters of the transformer and the underlying XLST processor.

setParameter(String_name, String_value)
Set the specified parameter in the underlying XSLT processor.

These parameters are accessible in the style sheet using the <xsl:param/> element.

Parameters:
{String} String_name
The name of the parameter to set.
{String} String_value
The the parameter value to set.

{Document} transform(Object_data)
Transform the specified object into an XML document using an XSL transformation.

This method first translates the input JSON object in an XML representation and pass it to the underlying XSLT processor.

Parameters:
{Object} Object_data
The input data to transform
Returns:
The resulting XML document

transformIntoDocument(Object_data, Element_element)
Transform the specified object into a document fragment using an XSL transformation and append it into the document under the specified element.

This method first translates the input JSON object in an XML representation and pass it to the underlying XSLT processor.

Parameters:
{Object} Object_data
The input data to transform
{Element} Element_element
The document element under which resulting data should be inserted

Documentation generated by JsDoc Toolkit 2.4.0 on Thu Jan 12 2012 02:07:53 GMT+0100 (CET)