Gnome XSLT Library Reference Manual
<<< Previous Page | Home | Up | Next Page >>>

# imports

## Name

imports --

## Synopsis

    #define     XSLT_GET_IMPORT_PTR             (res, style, name)
    #define     XSLT_GET_IMPORT_INT             (res, style, name)
    int         xsltParseStylesheetImport       (xsltStylesheetPtr style,
                                                 xmlNodePtr cur);
    int         xsltParseStylesheetInclude      (xsltStylesheetPtr style,
                                                 xmlNodePtr cur);
    xsltStylesheetPtr xsltNextImport            (xsltStylesheetPtr style);
    int         xsltNeedElemSpaceHandling       (xsltTransformContextPtr ctxt);
    int         xsltFindElemSpaceHandling       (xsltTransformContextPtr ctxt,
                                                 xmlNodePtr node);
    xsltTemplatePtr xsltFindTemplate            (xsltTransformContextPtr ctxt,
                                                 const xmlChar *name,
                                                 const xmlChar *nameURI);

## Description

## Details

### XSLT_GET_IMPORT_PTR()

    #define     XSLT_GET_IMPORT_PTR(res, style, name)

A macro to import pointers from the stylesheet cascading order.

`res` : |
`style` : |
`name` : |

### XSLT_GET_IMPORT_INT()

    #define     XSLT_GET_IMPORT_INT(res, style, name)

A macro to import intergers from the stylesheet cascading order.

`res` : |
`style` : |
`name` : |

### xsltParseStylesheetImport ()

    int         xsltParseStylesheetImport       (xsltStylesheetPtr style,
                                                 xmlNodePtr cur);

parse an XSLT stylesheet strip-space element and record elements needing stripping. Returns zero on success and something else on failure.

`style` : | the XSLT stylesheet
`cur` : |
Returns : |

### xsltParseStylesheetInclude ()

    int         xsltParseStylesheetInclude      (xsltStylesheetPtr style,
                                                 xmlNodePtr cur);

parse an XSLT stylesheet strip-space element and record elements needing stripping. Returns zero on success, something else on failure.

`style` : | the XSLT stylesheet
`cur` : |
Returns : |

### xsltNextImport ()

    xsltStylesheetPtr xsltNextImport            (xsltStylesheetPtr style);

Find the next stylesheet in import precedence.

`style` : |
Returns : | the next stylesheet or NULL if it was the last one

### xsltNeedElemSpaceHandling ()

    int         xsltNeedElemSpaceHandling       (xsltTransformContextPtr ctxt);

Returns whether that stylesheet requires white-space stripping

`ctxt` : | an XSLT transformation context
Returns : | 1 if space should be stripped, 0 if not

### xsltFindElemSpaceHandling ()

    int         xsltFindElemSpaceHandling       (xsltTransformContextPtr ctxt,
                                                 xmlNodePtr node);

Find strip-space or preserve-space informations for an element respect the import precedence or the wildcards

`ctxt` : | an XSLT transformation context
`node` : | an XML node
Returns : | 1 if space should be stripped, 0 if not, and 2 if everything should be CDTATA wrapped.

### xsltFindTemplate ()

    xsltTemplatePtr xsltFindTemplate            (xsltTransformContextPtr ctxt,
                                                 const xmlChar *name,
                                                 const xmlChar *nameURI);

Finds the named template, apply import precedence rule.

`ctxt` : | an XSLT transformation context
`name` : | the template name
`nameURI` : | the template name URI
Returns : | the xsltTemplatePtr or NULL if not found

<<< Previous Page | Home | Up | Next Page >>>
attributes | extensions