Skip Headers
Oracle® Database XML C++ API Reference
11g Release 1 (11.1)

B28389-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
PDF · Mobi · ePub

CompTransformer Interface

Table 10-3 summarizes the methods available through the CompTransformer interface.

Table 10-3 Summary of CompTransformer Methods; Xsl Package

Function Summary

getTransformerId()

Get transformer's Id.

setBinXsl()

Set compiled Xsl.

setSAXHandler()

Set SAX handler.

setXSL()

Set XSLT document for this transformer.

transform()

Transform the document.



getTransformerId()

Get transformer's id.

Syntax

virtual XslTrIdType getTransformerId() const = 0;

Returns

(XslTrIdType) Transformer's Id


setBinXsl()

Sets compiled Xsl.

Syntax

virtual void setBinXsl (
   ub2* binxsl_ptr)
throw (XslException) = 0;
Parameter Description
binxsl_ptr
compiled Xsl document


setSAXHandler()

Inherited from Transformer.

Syntax

virtual void setSAXHandler(
   SAXHandlerRoot* hdlr_ptr) = 0;
Parameter Description
hdlr_ptr
SAX handler pointer


setXSL()

Set XSLT document for this transformer. Should be called before the transform member function is called. It is inherited from Transform.

Syntax

virtual void setXSL (
   InputSource* isrc_ptr)
throw (XslException) = 0;
Parameter Description
isrc_ptr
instance document to process


transform()

Transforms the document. Throws an exception if an XSLT document is not set by a previous call to setXSL. Inherited from Transform.

Syntax Description
virtual NodeRef< Node>* transform(
   nputSource* isrc_ptr)
throw (XslException) = 0;
Transform the document and return DOM.
virtual void transform(
   InputSource* isrc_ptr,
   SAXHandlerRoot* hdlr_ptr)
throw (XslException) = 0;
Transform the document and return SAX events.

Parameter Description
isrc_ptr
instance document to process
hdlr_ptr
SAX handler pointer

Returns

(DocumentRef) document tree of new document