# The XSLT C library for GNOME

## Module preproc from libxslt

API Menu

- Main Menu
- Developer Menu
- API Menu
- ChangeLog

Related links

- Mail archive
- XML libxml2
- FTP
- Windows binaries
- Solaris binaries
- MacOsX binaries
- Bug Tracker
- XSLT with PHP
- Apache module
- Pascal bindings
- Xsldbg Debugger

API Indexes

- Alphabetic
- Constructors
- Functions/Types
- Modules
- Symbols

this is the compilation phase, where most of the stylesheet is "compiled" into faster to use data.

## Table of Contents

    xsltElemPreCompPtr	xsltDocumentComp	(xsltStylesheetPtr style,
    						 xmlNodePtr inst,
    						 xsltTransformFunction function)

    void	xsltFreeStylePreComps		(xsltStylesheetPtr style)

    void	xsltStylePreCompute		(xsltStylesheetPtr style,
    					 xmlNodePtr inst)

## Description

### Function: xsltDocumentComp

    xsltElemPreCompPtr	xsltDocumentComp	(xsltStylesheetPtr style,
    						 xmlNodePtr inst,
    						 xsltTransformFunction function)

Pre process an XSLT-1.1 document element

`style`: | the XSLT stylesheet
`inst`: | the instruction in the stylesheet
`function`: | unused
`Returns`: | a precompiled data structure for the element

### Function: xsltFreeStylePreComps

    void	xsltFreeStylePreComps		(xsltStylesheetPtr style)

Free up the memory allocated by all precomputed blocks

`style`: | an XSLT transformation context

### Function: xsltStylePreCompute

    void	xsltStylePreCompute		(xsltStylesheetPtr style,
    					 xmlNodePtr inst)

Precompute an XSLT stylesheet element

`style`: | the XSLT stylesheet
`inst`: | the instruction in the stylesheet

Daniel Veillard