Oracle® Database XML C API Reference 11g Release 2 (11.2) Part Number E10770-01 |
|
|
View PDF |
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
Syntax
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 |
Returns
(xslctx *)
XSLT context
See Also:
XmlXslDestroy()Destroy an XSL context
Syntax
xmlerr XmlXslDestroy( xslctx *ctx);
Parameter | In/Out | Description |
---|---|---|
ctx |
IN |
XSL context |
Returns
(xmlerr)
error code
See Also:
XmlXslCreate()Get the XSL processor base URI
Syntax
oratext *XmlXslGetBaseURI( xslctx *ctx);
Parameter | In/Out | Description |
---|---|---|
ctx |
IN |
XSL context object |
Returns
(oratext *)
base URI
Get the XSL result fragment
Syntax
xmlfragnode *XmlXslGetOutput( xslctx *ctx);
Parameter | In/Out | Description |
---|---|---|
ctx |
IN |
XSL context object |
Returns
(xmlfragnode *)
result fragment
Get the XSL stylesheet document
Syntax
xmldocnode *XmlXslGetStylesheetDom( xslctx *ctx);
Parameter | In/Out | Description |
---|---|---|
ctx |
IN |
XSL context object |
Returns
(xmldocnode *)
stylesheet document
Get the XSL text parameter value
Syntax
oratext *XmlXslGetTextParam( xslctx *ctx, oratext *name);
Parameter | In/Out | Description |
---|---|---|
ctx |
IN |
XML context object |
name |
IN |
name of the top-level parameter value |
Returns
(oratext *)
parameter value
See Also:
XmlXslSetTextParam()Do XSL processing on an instance document
Syntax
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 |
Returns
(xmlerr)
error code
Reset all the top level parameters added
Syntax
xmlerr XmlXslResetAllParams( xslctx *ctx);
Parameter | In/Out | Description |
---|---|---|
ctx |
IN |
XSL context object |
Returns
(xmlerr)
error code, XMLERR_SUCC [0] on success.
See Also:
XmlXslSetTextParam()Set the xslctx output DOM
Syntax
xmlerr XmlXslSetOutputDom( xslctx *ctx, xmldocnode *doc);
Parameter | In/Out | Description |
---|---|---|
ctx |
IN |
XSL context object |
doc |
IN |
output node |
Returns
(xmlerr)
error code, XMLERR_SUCC [0]
on success.
Set the xslctx output encoding
Syntax
xmlerr XmlXslSetOutputEncoding( xslctx *ctx, oratext* encoding);
Parameter | In/Out | Description |
---|---|---|
ctx |
IN |
XML context object |
encoding |
IN |
output encoding |
Returns
(xmlerr)
error code, XMLERR_SUCC [0]
on success.
Set the xslctx output method
Syntax
xmlerr XmlXslSetOutputMethod( xslctx *ctx, xmlxslomethod method);
Parameter | In/Out | Description |
---|---|---|
ctx |
IN |
XML context object |
encoding |
IN |
XSL output method |
Returns
(xmlerr)
error code, XMLERR_SUCC [0]
on success.
Set the xslctx output SAX
Syntax
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 |
Returns
(xmlerr)
error code, XMLERR_SUCC [0]
on success.
Syntax
xmlerr XmlXslSetOutputStream( xslctx *ctx, xmlostream *stream);
Parameter | In/Out | Description |
---|---|---|
ctx |
IN |
XSL context object |
stream |
IN |
output stream object |
Returns
(xmlxsl)
error code, XMLXSL_SUCC [0]
on success.
Set the xslctx
output text parameter.
Syntax
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 |
Returns
(xmlerr)
error code, XMLERR_SUCC [0]
on success.
See Also:
XmlXslGetTextParam()