Oracle® Database XML C API Reference 11g Release 2 (11.2) Part Number E10770-02 |
|
|
PDF · Mobi · ePub |
Package XSLT implements types and methods related to XSL processing.
This chapter contains this section:
Table 15-1 summarizes the methods available through the XSLT
interface.
Table 15-1 Summary of XSLT Methods
Function | Summary |
---|---|
Create an XSL context. |
|
Destroy an XSL context. |
|
Get the XSL processor base URI. |
|
Get the XSL result fragment. |
|
Get the XSL stylesheet document. |
|
Get the XSL text parameter value. |
|
Perform XSL processing on an instance document. |
|
Reset XSL processor parameters. |
|
Set the XSL context output DOM. |
|
Set the XSL context output encoding. |
|
Set the XSL context output method. |
|
Set the XSL context output SAX. |
|
Set the XSL context output stream. |
|
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
See Also:
XmlXslDestroy()Destroy an XSL context
xmlerr XmlXslDestroy( xslctx *ctx);
Parameter | In/Out | Description |
---|---|---|
ctx |
IN |
XSL context |
(xmlerr)
error code
See Also:
XmlXslCreate()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
See Also:
XmlXslSetTextParam()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.
See Also:
XmlXslSetTextParam()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.
See Also:
XmlXslGetTextParam()