| 
Oracle® XML API Reference  
 10g Release 1 (10.1) Part No. B10789-01  | 
  | 
| 
 | 
 | 
Table 22-3 summarizes the methods of available through the CompTransformer interface.
Table 22-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. | 
Get transformer's id.
virtual XslTrIdType getTransformerId() const = 0;
(XslTrIdType) Transformer's Id
Sets compiled Xsl.
virtual void setBinXsl ( ub2* binxsl_ptr) throw (XslException) = 0;
| Parameter | Description | 
|---|---|
binxsl_ptr  | 
compiled Xsl document | 
Inherited from Transformer.
virtual void setSAXHandler( SAXHandlerRoot* hdlr_ptr) = 0;
| Parameter | Description | 
|---|---|
hdlr_ptr  | 
SAX handler pointer | 
Set XSLT document for this transformer. Should be called before the transform member function is called. It is inherited from Transform.
virtual void setXSL ( InputSource* isrc_ptr) throw (XslException) = 0;
| Parameter | Description | 
|---|---|
isrc_ptr  | 
instance document to process | 
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 | 
(DocumentRef) document tree of new document