Class: XSLT

CTS.xslt. XSLT

new XSLT(endpoint, options)

Prototype for XSLT Stylesheets
Parameters:
Name Type Description
endpoint string Url of the stylesheet
options Object.<string, any> Any options to reuse inside
Properties:
Name Type Description
processor XSLTProcessor Processor object for transformation
endpoint string URL of the XSLT

Methods

<static> getOptions() → {Object.<string, Object.<string, any>>}

Get the option of the current instance
Returns:
Dictionary of pair key-object where key are field name and object contain datatype, html and default value
Type
Object.<string, Object.<string, any>>

<static> getValues() → {Object.<string, any>}

Return values of current object
Returns:
A dictionary of key-value pair where key are field name
Type
Object.<string, any>

<static> load() → {XSLTProcessor}

Send an synchronous request to load a stylesheet
Returns:
an XSLTProcessor with the stylesheet imported
Type
XSLTProcessor

<static> setValue(key, value)

Set the value of a field
Parameters:
Name Type Description
key string Field whom value has to change
value string New value for given field

<static> stylesheeting(transformDoc) → {XSLTProcessor}

Transform xml into an XSLTProcessor
Parameters:
Name Type Description
transformDoc string | Document The text/xml (XSL) representation of the Stylesheet
Returns:
The XSLT Processor with loaded up stylesheet
Type
XSLTProcessor

<static> transform(xml) → {Document}

Transform given xml through the loaded stylesheet
Parameters:
Name Type Description
xml string | Document A document to be transformed
Returns:
A freshly transformed document
Type
Document