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

# xsltutils

## Name

xsltutils --

## Synopsis

    int         xmlXPathIsNodeType              (const xmlChar *name);
    xmlChar*    xmlSplitQName2                  (const xmlChar *name,
                                                 xmlChar **prefix);
    void        xmlXPathBooleanFunction         (xmlXPathParserContextPtr ctxt,
                                                 int nargs);
    #define     TODO
    #define     STRANGE
    #define     IS_XSLT_ELEM                    (n)
    #define     IS_XSLT_NAME                    (n, val)
    extern      xmlGenericErrorFunc xsltGenericError;
    extern      void *xsltGenericErrorContext;
    extern      xmlGenericErrorFunc xsltGenericDebug;
    extern      void *xsltGenericDebugContext;
    void        xsltMessage                     (xsltTransformContextPtr ctxt,
                                                 xmlNodePtr node,
                                                 xmlNodePtr inst);
    void        xsltSetGenericErrorFunc         (void *ctx,
                                                 xmlGenericErrorFunc handler);
    void        xsltSetGenericDebugFunc         (void *ctx,
                                                 xmlGenericErrorFunc handler);
    void        xsltDocumentSortFunction        (xmlNodeSetPtr list);
    void        xsltSortFunction                (xmlNodeSetPtr list,
                                                 xmlXPathObjectPtr *results,
                                                 int descending,
                                                 int number);
    int         xsltSaveResultTo                (xmlOutputBufferPtr buf,
                                                 xmlDocPtr result,
                                                 xsltStylesheetPtr style);
    int         xsltSaveResultToFilename        (const char *URI,
                                                 xmlDocPtr result,
                                                 xsltStylesheetPtr style,
                                                 int compression);
    int         xsltSaveResultToFile            (FILE *file,
                                                 xmlDocPtr result,
                                                 xsltStylesheetPtr style);
    int         xsltSaveResultToFd              (int fd,
                                                 xmlDocPtr result,
                                                 xsltStylesheetPtr style);

## Description

## Details

### xmlXPathIsNodeType ()

    int         xmlXPathIsNodeType              (const xmlChar *name);

`name` : |
Returns : |

### xmlSplitQName2 ()

    xmlChar*    xmlSplitQName2                  (const xmlChar *name,
                                                 xmlChar **prefix);

`name` : |
`prefix` : |
Returns : |

### xmlXPathBooleanFunction ()

    void        xmlXPathBooleanFunction         (xmlXPathParserContextPtr ctxt,
                                                 int nargs);

`ctxt` : |
`nargs` : |

### TODO

    #define     TODO

### STRANGE

    #define     STRANGE

### IS_XSLT_ELEM()

    #define     IS_XSLT_ELEM(n)

`n` : |

### IS_XSLT_NAME()

    #define     IS_XSLT_NAME(n, val)

`n` : |
`val` : |

### xsltGenericError

    extern xmlGenericErrorFunc xsltGenericError;

### xsltGenericErrorContext

    extern void *xsltGenericErrorContext;

### xsltGenericDebug

    extern xmlGenericErrorFunc xsltGenericDebug;

### xsltGenericDebugContext

    extern void *xsltGenericDebugContext;

### xsltMessage ()

    void        xsltMessage                     (xsltTransformContextPtr ctxt,
                                                 xmlNodePtr node,
                                                 xmlNodePtr inst);

Process and xsl:message construct

`ctxt` : | an XSLT processing context
`node` : | The current node
`inst` : | The node containing the message instruction

### xsltSetGenericErrorFunc ()

    void        xsltSetGenericErrorFunc         (void *ctx,
                                                 xmlGenericErrorFunc handler);

Function to reset the handler and the error context for out of context error messages. This simply means that `handler` will be called for subsequent error messages while not parsing nor validating. And `ctx` will be passed as first argument to `handler` One can simply force messages to be emitted to another FILE * than stderr by setting `ctx` to this file handle and `handler` to NULL.

`ctx` : | the new error handling context
`handler` : | the new handler function

### xsltSetGenericDebugFunc ()

    void        xsltSetGenericDebugFunc         (void *ctx,
                                                 xmlGenericErrorFunc handler);

Function to reset the handler and the error context for out of context error messages. This simply means that `handler` will be called for subsequent error messages while not parsing nor validating. And `ctx` will be passed as first argument to `handler` One can simply force messages to be emitted to another FILE * than stderr by setting `ctx` to this file handle and `handler` to NULL.

`ctx` : | the new error handling context
`handler` : | the new handler function

### xsltDocumentSortFunction ()

    void        xsltDocumentSortFunction        (xmlNodeSetPtr list);

reorder the current node list `list` accordingly to the document order

`list` : | the node set

### xsltSortFunction ()

    void        xsltSortFunction                (xmlNodeSetPtr list,
                                                 xmlXPathObjectPtr *results,
                                                 int descending,
                                                 int number);

reorder the current node list `list` accordingly to the values present in the array of results `results`

`list` : | the node set
`results` : | the results
`descending` : | direction of order
`number` : | the type of the result

### xsltSaveResultTo ()

    int         xsltSaveResultTo                (xmlOutputBufferPtr buf,
                                                 xmlDocPtr result,
                                                 xsltStylesheetPtr style);

Save the result `result` obtained by applying the `style` stylesheet to an I/O output channel `buf`

`buf` : | an output buffer
`result` : | the result xmlDocPtr
`style` : | the stylesheet
Returns : | the number of byte written or -1 in case of failure.

### xsltSaveResultToFilename ()

    int         xsltSaveResultToFilename        (const char *URI,
                                                 xmlDocPtr result,
                                                 xsltStylesheetPtr style,
                                                 int compression);

Save the result `result` obtained by applying the `style` stylesheet to a file or URL `URL`

`URI` : |
`result` : | the result xmlDocPtr
`style` : | the stylesheet
`compression` : | the compression factor (0 - 9 included)
Returns : | the number of byte written or -1 in case of failure.

### xsltSaveResultToFile ()

    int         xsltSaveResultToFile            (FILE *file,
                                                 xmlDocPtr result,
                                                 xsltStylesheetPtr style);

Save the result `result` obtained by applying the `style` stylesheet to an open FILE * I/O. This does not close the FILE `file`

`file` : | a FILE * I/O
`result` : | the result xmlDocPtr
`style` : | the stylesheet
Returns : | the number of byte written or -1 in case of failure.

### xsltSaveResultToFd ()

    int         xsltSaveResultToFd              (int fd,
                                                 xmlDocPtr result,
                                                 xsltStylesheetPtr style);

Save the result `result` obtained by applying the `style` stylesheet to an open file descriptor This does not close the descriptor.

`fd` : | a file descriptor
`result` : | the result xmlDocPtr
`style` : | the stylesheet
Returns : | the number of byte written or -1 in case of failure.

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