OverviewSingleDeprecated

jsx3.xml

class Template

Object
->jsx3.lang.Object
  ->jsx3.xml.Template

class Template
extends jsx3.lang.Object
Wrapper of the native browser XSLT processor.

Since:

3.4

Constructor Summary
void
The instance initializer.
Method Summary
Object
Returns an error object (a plain JavaScript object) with two properties that the developer can query for: code – an integer error code, 0 for no error.
boolean
Returns true if the last operation on this XML entity caused an error.
void
void
setParam(strName : String, objValue : Object)
void
setParams(objParams : Object<String, Object>)
String
transform(objXML : jsx3.xml.Entity, bObject : boolean)
Performs an XSLT merge.
jsx3.xml.Document
Performs an XSLT merge.
Methods Inherited From jsx3.lang.Object
clone, equals, eval, getClass, getInstanceOf, getInstanceOfClass, getInstanceOfPackage, instanceOf, isInstanceOf, isSubclassOf, jsxmix, jsxsuper, jsxsupermix, setInstanceOf, toString
Constructor Detail

init

void init(objXSL : jsx3.xml.Document)
The instance initializer.

Parameters:

objXSL

Throws:

{jsx3.lang.Exception}if objXSL is not a valid XML document.
Method Detail

getError

Object getError()
Returns an error object (a plain JavaScript object) with two properties that the developer can query for:

Returns:

 

hasError

boolean hasError()
Returns true if the last operation on this XML entity caused an error.

Returns:

 

reset

void reset()

setParam

void setParam(strName : String, objValue : Object)

Parameters:

strName
objValue

setParams

void setParams(objParams : Object<String, Object>)

Parameters:

objParamsJavaScript object array of name/value pairs. If this parameter is not empty, the transformation will use a paramaterized stylesheet to perform the transformation.

transform

String transform(objXML : jsx3.xml.Entity, bObject : boolean)
Performs an XSLT merge. If an error occurs while performing the transform, this method sets the error property of this processor and returns null.

Parameters:

objXML
bObject

Returns:

the result of the transformation  

transformToObject

jsx3.xml.Document transformToObject(objXML : jsx3.xml.Entity)
Performs an XSLT merge. If an error occurs while performing the transform, this method sets the error property of this processor and returns null.

Parameters:

objXML

Returns:

if a valid result tree is formed as a result of the transformation