xsltutils

Name

xsltutils -- 

Synopsis



#define     XSLT_TODO
#define     XSLT_STRANGE
#define     IS_XSLT_ELEM                    (n)
#define     IS_XSLT_NAME                    (n, val)
#define     IS_XSLT_REAL_NODE               (n)
xmlChar*    xsltGetNsProp                   (xmlNodePtr node,
                                             const xmlChar *name,
                                             const xmlChar *nameSpace);
void        xsltPrintErrorContext           (xsltTransformContextPtr ctxt,
                                             xsltStylesheetPtr style,
                                             xmlNodePtr node);
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        xsltDoSortFunction              (xsltTransformContextPtr ctxt,
                                             xmlNodePtr *sorts,
                                             int nbsorts);
const xmlChar* xsltGetQNameURI              (xmlNodePtr node,
                                             xmlChar **name);
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);
int         xsltSaveResultToString          (xmlChar **doc_txt_ptr,
                                             int *doc_txt_len,
                                             xmlDocPtr result,
                                             xsltStylesheetPtr style);
void        xsltSaveProfiling               (xsltTransformContextPtr ctxt,
                                             FILE *output);
long        xsltTimestamp                   (void);
void        xsltCalibrateAdjust             (long delta);
#define     XSLT_TIMESTAMP_TICS_PER_SEC
enum        xsltDebugStatusCodes;
void        (*xsltHandleDebuggerCallback)   (xmlNodePtr cur,
                                             xmlNodePtr node,
                                             xsltTemplatePtr templ,
                                             xsltTransformContextPtr ctxt);
int         (*xsltAddCallCallback)          (xsltTemplatePtr templ,
                                             xmlNodePtr source);
void        (*xsltDropCallCallback)         (void);
int         xsltSetDebuggerCallbacks        (int no,
                                             void *block);
int         xslAddCall                      (xsltTemplatePtr templ,
                                             xmlNodePtr source);
void        xslDropCall                     (void);

Description

Details

XSLT_TODO

#define     XSLT_TODO


XSLT_STRANGE

#define     XSLT_STRANGE


IS_XSLT_ELEM()

#define     IS_XSLT_ELEM(n)

Checks that the element pertains to XSLT namespace.


IS_XSLT_NAME()

#define     IS_XSLT_NAME(n, val)

Checks the value of an element in XSLT namespace.


IS_XSLT_REAL_NODE()

#define     IS_XSLT_REAL_NODE(n)

Check that a node is a 'real' one: document, element, text or attribute.


xsltGetNsProp ()

xmlChar*    xsltGetNsProp                   (xmlNodePtr node,
                                             const xmlChar *name,
                                             const xmlChar *nameSpace);

Similar to xmlGetNsProp() but with a slightly different semantic

Search and get the value of an attribute associated to a node This attribute has to be anchored in the namespace specified, or has no namespace and the element is in that namespace.

This does the entity substitution. This function looks in DTD attribute declaration for FIXED or default declaration values unless DTD use has been turned off.


xsltPrintErrorContext ()

void        xsltPrintErrorContext           (xsltTransformContextPtr ctxt,
                                             xsltStylesheetPtr style,
                                             xmlNodePtr node);

Display the context of an error.


xsltMessage ()

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

Process and xsl:message construct


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.


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 or 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.


xsltDocumentSortFunction ()

void        xsltDocumentSortFunction        (xmlNodeSetPtr list);

reorder the current node list list accordingly to the document order


xsltDoSortFunction ()

void        xsltDoSortFunction              (xsltTransformContextPtr ctxt,
                                             xmlNodePtr *sorts,
                                             int nbsorts);

reorder the current node list accordingly to the set of sorting requirement provided by the arry of nodes.


xsltGetQNameURI ()

const xmlChar* xsltGetQNameURI              (xmlNodePtr node,
                                             xmlChar **name);

This function analyzes name, if the name contains a prefix, the function seaches the associated namespace in scope for it. It will also replace name value with the NCName, the old value being freed. Errors in the prefix lookup are signalled by setting name to NULL.

NOTE: the namespace returned is a pointer to the place where it is defined and hence has the same lifespan as the document holding it.


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


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


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


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.


xsltSaveResultToString ()

int         xsltSaveResultToString          (xmlChar **doc_txt_ptr,
                                             int *doc_txt_len,
                                             xmlDocPtr result,
                                             xsltStylesheetPtr style);

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


xsltSaveProfiling ()

void        xsltSaveProfiling               (xsltTransformContextPtr ctxt,
                                             FILE *output);

Save the profiling informations on output


xsltTimestamp ()

long        xsltTimestamp                   (void);

Used for gathering profiling data


xsltCalibrateAdjust ()

void        xsltCalibrateAdjust             (long delta);

Used for to correct the calibration for xsltTimestamp()


XSLT_TIMESTAMP_TICS_PER_SEC

#define XSLT_TIMESTAMP_TICS_PER_SEC 100000l


enum xsltDebugStatusCodes

typedef enum {
    XSLT_DEBUG_NONE = 0, /* no debugging allowed */
    XSLT_DEBUG_INIT,
    XSLT_DEBUG_STEP,
    XSLT_DEBUG_STEPOUT,
    XSLT_DEBUG_NEXT,
    XSLT_DEBUG_STOP,
    XSLT_DEBUG_CONT,
    XSLT_DEBUG_RUN,
    XSLT_DEBUG_RUN_RESTART,
    XSLT_DEBUG_QUIT
} xsltDebugStatusCodes;


xsltHandleDebuggerCallback ()

void        (*xsltHandleDebuggerCallback)   (xmlNodePtr cur,
                                             xmlNodePtr node,
                                             xsltTemplatePtr templ,
                                             xsltTransformContextPtr ctxt);


xsltAddCallCallback ()

int         (*xsltAddCallCallback)          (xsltTemplatePtr templ,
                                             xmlNodePtr source);


xsltDropCallCallback ()

void        (*xsltDropCallCallback)         (void);


xsltSetDebuggerCallbacks ()

int         xsltSetDebuggerCallbacks        (int no,
                                             void *block);


xslAddCall ()

int         xslAddCall                      (xsltTemplatePtr templ,
                                             xmlNodePtr source);

Add template "call" to call stack


xslDropCall ()

void        xslDropCall                     (void);

Drop the topmost item off the call stack