Oracle® Database XML C++ API Reference 11g Release 1 (11.1) Part Number B28389-01 |
|
|
View PDF |
Table 10-4 summarizes the methods available through the Transformer
interface.
Table 10-4 Summary of Transformer Methods; Xsl Package
Function | Summary |
---|---|
|
Get transformer's Id. |
|
Set SAX handler. |
|
Set XSLT document for this transformer. |
|
Transform the document and return SAX events. |
Gets transformer's id.
Syntax
virtual XslTrIdType getTransformerId() const = 0;
Returns
(XslTrIdType)
Transformer's Id
Set SAX handler.
Syntax
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.
Syntax
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.
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