Compiler Interface

Table 10-2 summarizes the methods available through the Compiler interface.

Table 10-2 Summary of Compiler Methods; Xsl Package

Function Summary

compile()

Compile Xsl and return its compiled binary representation.

getCompilerId()

Get compiler's Id.

getLength()

Get length of compiled XSL document.



compile()

Compiles Xsl and returns its compiled binary representation.

Syntax

virtual ub2* compile(
   InputSource* isrc_ptr)
throw (XslException) = 0;
Parameter Description
isrc_ptr
Xsl document

Returns

(InputSource) Xsl document in compiled binary representation


getCompilerId()

Get the compiler Id.

Syntax

virtual XslCompIdType getCompilerId() const = 0;

Returns

(XslCompIdType) Compiler's Id


getLength()

Returns length of compiled XSL document

Syntax

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

Returns

(ub4) length of the document