xsltutils

Name

xsltutils -- 

Synopsis



xmlChar*    xmlSplitQName2                  (const xmlChar *name,
                                             xmlChar **prefix);
void        xmlXPathBooleanFunction         (xmlXPathParserContextPtr ctxt,
                                             int nargs);
xmlAttrPtr  xmlSetNsProp                    (xmlNodePtr node,
                                             xmlNsPtr ns,
                                             const xmlChar *name,
                                             const xmlChar *value);
#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        xsltSetGenericErrorFunc         (void *ctx,
                                             xmlGenericErrorFunc handler);
void        xsltSetGenericDebugFunc         (void *ctx,
                                             xmlGenericErrorFunc handler);
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

xmlSplitQName2 ()

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

name : 
prefix : 
Returns :


xmlXPathBooleanFunction ()

void        xmlXPathBooleanFunction         (xmlXPathParserContextPtr ctxt,
                                             int nargs);

ctxt : 
nargs :


xmlSetNsProp ()

xmlAttrPtr  xmlSetNsProp                    (xmlNodePtr node,
                                             xmlNsPtr ns,
                                             const xmlChar *name,
                                             const xmlChar *value);

node : 
ns : 
name : 
value : 
Returns :


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;


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


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.