Packages: All | Callback | DOM | Range | SAX | Schema | Traversal | XML | XPath | XPointer | XSLT | XSLTVM Functions | Datatypes

Package XSLT



Interface XSLT

Function Index

FunctionDescription
XmlXslCreate Create an XSLT context
XmlXslDestroy Destroy an XSL context
XmlXslGetBaseURI Get the XSL processor base URI
XmlXslGetOutput Get the XSL result fragment
XmlXslGetStylesheetDom Get the XSL stylesheet document
XmlXslGetTextParam Get the XSL text parameter value
XmlXslProcess Do XSL processing on an instance document
XmlXslResetAllParams Reset XSL processor parameters.
XmlXslSetOutputDom Set the xslctx output DOM
XmlXslSetOutputEncoding Set the xslctx output encoding
XmlXslSetOutputMethod Set the xslctx output method
XmlXslSetOutputSax Set the xslctx output SAX
XmlXslSetOutputStream Set the xslctx output stream.
XmlXslSetTextParam Set the xslctx output text param.

XmlXslCreate

Name XmlXslCreate
Interface XSLT
Purpose Create an XSLT context
Prototype xslctx *XmlXslCreate(xmlctx *ctx, xmldocnode *xsl, 
                 oratext *baseuri, xmlerr *err);
Arguments
ctx  (IN)  XML context object.
xsl  (IN)  XSL stylesheet document object.
baseuri  (IN)  baseuri for include/import/document().
err  (I/O)  the error returned.
Returns (xslctx *) XSLT context
Description Create an XSLT context

See Also XmlXslDestroy

XmlXslDestroy

Name XmlXslDestroy
Interface XSLT
Purpose Destroy an XSL context
Prototype xmlerr XmlXslDestroy(xslctx *ctx);
Arguments
ctx  (IN)  XSL context
Returns (xmlerr) error code
Description Destroy an XSL context

See Also XmlXslCreate

XmlXslGetBaseURI

Name XmlXslGetBaseURI
Interface XSLT
Purpose Get the XSL processor base URI
Prototype oratext *XmlXslGetBaseURI(xslctx *ctx);
Arguments
ctx  (IN)  XSL context
Returns (oratext *) base URI
Description Get the XSL processor base URI

XmlXslGetOutput

Name XmlXslGetOutput
Interface XSLT
Purpose Get the XSL result fragment
Prototype xmlfragnode *XmlXslGetOutput(xslctx *ctx);
Arguments
ctx  (IN)  XSL context
Returns (xmlfragnode *) result fragment
Description Get the XSL result fragment

XmlXslGetStylesheetDom

Name XmlXslGetStylesheetDom
Interface XSLT
Purpose Get the XSL stylesheet document
Prototype xmldocnode *XmlXslGetStylesheetDom(xslctx *ctx);
Arguments
ctx  (IN)  XSL context
Returns (xmldocnode *) stylesheet document
Description Get the XSL stylesheet document

XmlXslGetTextParam

Name XmlXslGetTextParam
Interface XSLT
Purpose Get the XSL text parameter value
Prototype oratext *XmlXslGetTextParam(xslctx *ctx, oratext *name);
Arguments
ctx  (IN)  XSL context
name  (IN)  name of the top-level param
Returns (oratext *) parameter value
Description Get the XSL text parameter value

See Also XmlXslSetTextParam

XmlXslProcess

Name XmlXslProcess
Interface XSLT
Purpose Do XSL processing on an instance document
Prototype xmlerr XmlXslProcess(xslctx *ctx, xmldocnode *xml, boolean normalize);
Arguments
ctx  (IN)  XSL context object.
xml  (IN)  instance document to process
normalize  (IN)  if TRUE forces the XSL processor to normalize the doc.
Returns (xmlerr) error code
Description Do XSL processing on an instance document. xsl:output is supported only if XmlXslSetOutputStream has been called previously.

XmlXslResetAllParams

Name XmlXslResetAllParams
Interface XSLT
Purpose Reset XSL processor parameters.
Prototype xmlerr XmlXslResetAllParams(xslctx *ctx);
Arguments
ctx  (IN)  XSL context object
Returns (xmlerr) error code, XMLERR_SUCC [0] on success.
Description Reset all the top level parameters added

See Also XmlXslSetTextParam

XmlXslSetOutputDom

Name XmlXslSetOutputDom
Interface XSLT
Purpose Set the xslctx output DOM
Prototype xmlerr XmlXslSetOutputDom(xslctx *ctx, xmldocnode *doc);
Arguments
ctx  (IN)  XSL context object
stream  (IN)  output stream object
Returns (xmlerr) error code, XMLERR_SUCC [0] on success.
Description Set the xslctx output DOM

XmlXslSetOutputEncoding

Name XmlXslSetOutputEncoding
Interface XSLT
Purpose Set the xslctx output encoding
Prototype xmlerr XmlXslSetOutputEncoding(xslctx *ctx, oratext* encoding);
Arguments
ctx  (IN)  XSL context object
encoding  (IN)  output encoding
Returns (xmlerr) error code, XMLERR_SUCC [0] on success.
Description Set the xslctx output encoding

XmlXslSetOutputMethod

Name XmlXslSetOutputMethod
Interface XSLT
Purpose Set the xslctx output method
Prototype xmlerr XmlXslSetOutputMethod(xslctx *ctx, xmlxslomethod method);
Arguments
ctx  (IN)  XSL context object
method  (IN)  XSL output metod (xmlxslomethod)
Returns (xmlerr) error code, XMLERR_SUCC [0] on success.
Description Set the xslctx output method

XmlXslSetOutputSax

Name XmlXslSetOutputSax
Interface XSLT
Purpose Set the xslctx output SAX
Prototype xmlerr XmlXslSetOutputSax(xslctx *ctx, xmlsaxcb* saxcb, void *saxctx);
Arguments
ctx  (IN)  XSL context object
saxcb  (IN)  SAX callback object
saxctx  (IN)  SAX callback context
Returns (xmlerr) error code, XMLERR_SUCC [0] on success.
Description Set the xslctx output SAX

XmlXslSetOutputStream

Name XmlXslSetOutputStream
Interface XSLT
Purpose Set the xslctx output stream.
Prototype xmlerr XmlXslSetOutputStream(xslctx *ctx, xmlostream *stream);
Arguments
ctx  (IN)  - XSL context object.
stream  (IN)  - output stream object.
Returns (xmlxsl) error code, XMLXSL_SUCC (0) on success.
Description

XmlXslSetTextParam

Name XmlXslSetTextParam
Interface XSLT
Purpose Set the xslctx output text param.
Prototype xmlerr XmlXslSetTextParam(xslctx *ctx, oratext *name, oratext *value);
Arguments
ctx  (IN)  XSL context object
name  (IN)  name of top-level param
value  (IN)  value of top-level param
Returns (xmlerr) error code, XMLERR_SUCC [0] on success.
Description Set the xslctx output text param.

See Also XmlXslGetTextParam