Skip Headers

Oracle® XML API Reference 10g Release 1 (10.1) Part No. B10789-01 |
| Contents

## Compiler Interface

Table 22-2 summarizes the methods of available through the `Compiler` interface.

Table 22-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