Oracle® XML API Reference
10g Release 1 (10.1) Part No. B10789-01 |
|
Table 12-1 summarizes the methods of available through the XSLT
interface.
Table 12-1 Summary of XSLT Methods
Function | Summary |
---|---|
XmlXslCreate
|
Create an XSL context. |
XmlXslDestroy
|
Destroy an XSL context. |
XmlXslGetBaseURI
|
Get the XSL processor base URI. |
XmlXslGetOutput
|
Get the XSL result fragment. |
XmlXslGetStylesheetDom
|
Get he XSL stylesheet document. |
XmlXslGetTextParam
|
Get the XSL text parameter value. |
XmlXslProcess
|
Perform XSL processing on an instance document. |
XmlXslResetAllParams
|
Reset XSL processor parameters. |
XmlXslSetOutputDom
|
Set the XSL context output DOM. |
XmlXslSetOutputEncoding
|
Set the XSL context output encoding. |
XmlXslSetOutputMethod
|
Set the XSL context output method. |
XmlXslSetOutputSax
|
Set the XSL context output SAX. |
XmlXslSetOutputStream
|
Set the XSL context output stream. |
XmlXslSetTextParam
|
Set the XSL context output text parameter. |
Create an XSLT context
xslctx *XmlXslCreate( xmlctx *ctx, xmldocnode *xsl, oratext *baseuri, xmlerr *err);
Parameter | In/Out | Description |
---|---|---|
ctx |
IN |
XSL context object |
xsl |
IN |
XSL stylesheet document object |
baseuri |
IN |
base URI for including and importing documents |
err |
IN/OUT |
returned error code |
(xslctx *)
XSLT context
Destroy an XSL context
xmlerr XmlXslDestroy( xslctx *ctx);
Parameter | In/Out | Description |
---|---|---|
ctx |
IN |
XSL context |
(xmlerr)
error code
Get the XSL processor base URI
oratext *XmlXslGetBaseURI( xslctx *ctx);
Parameter | In/Out | Description |
---|---|---|
ctx |
IN |
XSL context object |
(oratext *)
base URI
Get the XSL result fragment
xmlfragnode *XmlXslGetOutput( xslctx *ctx);
Parameter | In/Out | Description |
---|---|---|
ctx |
IN |
XSL context object |
(xmlfragnode *)
result fragment
Get the XSL stylesheet document
xmldocnode *XmlXslGetStylesheetDom( xslctx *ctx);
Parameter | In/Out | Description |
---|---|---|
ctx |
IN |
XSL context object |
(xmldocnode *)
stylesheet document
Get the XSL text parameter value
oratext *XmlXslGetTextParam( xslctx *ctx, oratext *name);
Parameter | In/Out | Description |
---|---|---|
ctx |
IN |
XML context object |
name |
IN |
name of the top-level parameter value |
(oratext *)
parameter value
Do XSL processing on an instance document
xmlerr XmlXslProcess( xslctx *ctx, xmldocnode *xml, boolean normalize);
Parameter | In/Out | Description |
---|---|---|
ctx |
IN |
XSL context object |
xml |
IN |
instance document to process |
normalize |
IN |
if TRUE , force the XSL processor to normalize the document
|
(xmlerr)
error code
Reset all the top level parameters added
xmlerr XmlXslResetAllParams( xslctx *ctx);
Parameter | In/Out | Description |
---|---|---|
ctx |
IN |
XSL context object |
(xmlerr)
error code, XMLERR_SUCC [0] on success.
Set the xslctx output DOM
xmlerr XmlXslSetOutputDom( xslctx *ctx, xmldocnode *doc);
Parameter | In/Out | Description |
---|---|---|
ctx |
IN |
XSL context object |
doc |
IN |
output node |
(xmlerr)
error code, XMLERR_SUCC [0]
on success.
Set the xslctx output encoding
xmlerr XmlXslSetOutputEncoding( xslctx *ctx, oratext* encoding);
Parameter | In/Out | Description |
---|---|---|
ctx |
IN |
XML context object |
encoding |
IN |
output encoding |
(xmlerr)
error code, XMLERR_SUCC [0]
on success.
Set the xslctx output method
xmlerr XmlXslSetOutputMethod( xslctx *ctx, xmlxslomethod method);
Parameter | In/Out | Description |
---|---|---|
ctx |
IN |
XML context object |
encoding |
IN |
XSL output method |
(xmlerr)
error code, XMLERR_SUCC [0]
on success.
Set the xslctx output SAX
xmlerr XmlXslSetOutputSax( xslctx *ctx, xmlsaxcb* saxcb, void *saxctx);
Parameter | In/Out | Description |
---|---|---|
ctx |
IN |
XSL context object |
saxcb |
IN |
SAX callback object |
saxctx |
IN |
SAX callback context |
(xmlerr)
error code, XMLERR_SUCC [0]
on success.
xmlerr XmlXslSetOutputStream( xslctx *ctx, xmlostream *stream);
Parameter | In/Out | Description |
---|---|---|
ctx |
IN |
XSL context object |
stream |
IN |
output stream object |
(xmlxsl)
error code, XMLXSL_SUCC [0]
on success.
Set the xslctx
output text parameter.
xmlerr XmlXslSetTextParam( xslctx *ctx, oratext *name, oratext *value);
Parameter | In/Out | Description |
---|---|---|
ctx |
IN |
XSL context object |
name |
IN |
name of top level parameter |
value |
IN |
value of top level parameter |
(xmlerr)
error code, XMLERR_SUCC [0]
on success.