|
ReactOS 0.4.16-dev-2279-gc890759
|
#include <libxslt/xsltconfig.h>#include <libxml/xpath.h>#include <libxml/dict.h>#include <libxml/xmlerror.h>#include "xsltexports.h"#include "xsltInternals.h"

Go to the source code of this file.
Macros | |
| #define | XSLT_TODO |
| #define | XSLT_STRANGE |
| #define | IS_XSLT_ELEM(n) |
| #define | IS_XSLT_NAME(n, val) (xmlStrEqual((n)->name, (const xmlChar *) (val))) |
| #define | IS_XSLT_REAL_NODE(n) |
| #define | XSLT_TRACE(ctxt, code, call) |
| #define | XSLT_TIMESTAMP_TICS_PER_SEC 100000l |
Typedefs | |
| typedef void(* | xsltHandleDebuggerCallback) (xmlNodePtr cur, xmlNodePtr node, xsltTemplatePtr templ, xsltTransformContextPtr ctxt) |
| typedef int(* | xsltAddCallCallback) (xsltTemplatePtr templ, xmlNodePtr source) |
| typedef void(* | xsltDropCallCallback) (void) |
Enumerations | |
| enum | xsltDebugTraceCodes { XSLT_TRACE_ALL = -1 , XSLT_TRACE_NONE = 0 , XSLT_TRACE_COPY_TEXT = 1<<0 , XSLT_TRACE_PROCESS_NODE = 1<<1 , XSLT_TRACE_APPLY_TEMPLATE = 1<<2 , XSLT_TRACE_COPY = 1<<3 , XSLT_TRACE_COMMENT = 1<<4 , XSLT_TRACE_PI = 1<<5 , XSLT_TRACE_COPY_OF = 1<<6 , XSLT_TRACE_VALUE_OF = 1<<7 , XSLT_TRACE_CALL_TEMPLATE = 1<<8 , XSLT_TRACE_APPLY_TEMPLATES = 1<<9 , XSLT_TRACE_CHOOSE = 1<<10 , XSLT_TRACE_IF = 1<<11 , XSLT_TRACE_FOR_EACH = 1<<12 , XSLT_TRACE_STRIP_SPACES = 1<<13 , XSLT_TRACE_TEMPLATES = 1<<14 , XSLT_TRACE_KEYS = 1<<15 , XSLT_TRACE_VARIABLES = 1<<16 } |
| enum | xsltDebugStatusCodes { XSLT_DEBUG_NONE = 0 , 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 } |
IS_XSLT_ELEM:
Checks that the element pertains to XSLT namespace.
Definition at line 51 of file xsltutils.h.
IS_XSLT_NAME:
Checks the value of an element in XSLT namespace.
Definition at line 60 of file xsltutils.h.
IS_XSLT_REAL_NODE:
Check that a node is a 'real' one: document, element, text or attribute.
Definition at line 68 of file xsltutils.h.
| #define XSLT_STRANGE |
XSLT_STRANGE:
Macro to flag that a problem was detected internally.
Definition at line 41 of file xsltutils.h.
| #define XSLT_TIMESTAMP_TICS_PER_SEC 100000l |
XSLT_TIMESTAMP_TICS_PER_SEC:
Sampling precision for profiling
Definition at line 297 of file xsltutils.h.
| #define XSLT_TODO |
XSLT_TODO:
Macro to flag unimplemented blocks.
Definition at line 31 of file xsltutils.h.
XSLT_TRACE:
Control the type of xsl debugtrace messages emitted.
Definition at line 132 of file xsltutils.h.
| typedef int(* xsltAddCallCallback) (xsltTemplatePtr templ, xmlNodePtr source) |
Definition at line 320 of file xsltutils.h.
Definition at line 321 of file xsltutils.h.
| typedef void(* xsltHandleDebuggerCallback) (xmlNodePtr cur, xmlNodePtr node, xsltTemplatePtr templ, xsltTransformContextPtr ctxt) |
Definition at line 318 of file xsltutils.h.
| Enumerator | |
|---|---|
| XSLT_DEBUG_NONE | |
| 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 | |
Definition at line 303 of file xsltutils.h.
Definition at line 105 of file xsltutils.h.
| XSLTPUBFUN xmlXPathObjectPtr *XSLTCALL xsltComputeSortResult | ( | xsltTransformContextPtr | ctxt, |
| xmlNodePtr | sort | ||
| ) |
xsltComputeSortResult: @ctxt: a XSLT process context @sort: node list
reorder the current node list accordingly to the set of sorting requirement provided by the array of nodes.
Returns a ordered XPath nodeset or NULL in case of error.
Definition at line 1161 of file xsltutils.c.
| XSLTPUBFUN xsltDebugTraceCodes XSLTCALL xsltDebugGetDefaultTrace | ( | void | ) |
xsltDebugGetDefaultTrace:
Get the current default debug tracing level mask
Returns the current default debug tracing level mask
Definition at line 488 of file transform.c.
| XSLTPUBFUN void XSLTCALL xsltDebugSetDefaultTrace | ( | xsltDebugTraceCodes | val | ) |
xsltDebugSetDefaultTrace: @val: tracing level mask
Set the default debug tracing level mask
Definition at line 477 of file transform.c.
| XSLTPUBFUN void XSLTCALL xsltDefaultSortFunction | ( | xsltTransformContextPtr | ctxt, |
| xmlNodePtr * | sorts, | ||
| int | nbsorts | ||
| ) |
xsltDefaultSortFunction: @ctxt: a XSLT process context @sorts: array of sort nodes @nbsorts: the number of sorts in the array
reorder the current node list accordingly to the set of sorting requirement provided by the arry of nodes.
Definition at line 1181 of file xsltutils.c.
Referenced by xsltSetSortFunc().
| XSLTPUBFUN void XSLTCALL xsltDocumentSortFunction | ( | xmlNodeSetPtr | list | ) |
xsltDocumentSortFunction: @list: the node set
reorder the current node list @list accordingly to the document order This function is slow, obsolete and should not be used anymore.
Definition at line 987 of file xsltutils.c.
| XSLTPUBFUN void XSLTCALL xsltDoSortFunction | ( | xsltTransformContextPtr | ctxt, |
| xmlNodePtr * | sorts, | ||
| int | nbsorts | ||
| ) |
xsltDoSortFunction: @ctxt: a XSLT process context @sorts: array of sort nodes @nbsorts: the number of sorts in the array
reorder the current node list accordingly to the set of sorting requirement provided by the arry of nodes. This is a wrapper function, the actual function used is specified using xsltSetCtxtSortFunc() to set the context specific sort function, or xsltSetSortFunc() to set the global sort function. If a sort function is set on the context, this will get called. Otherwise the global sort function is called.
Definition at line 1447 of file xsltutils.c.
Referenced by xsltApplyTemplates(), and xsltForEach().
| XSLTPUBFUN const xmlChar *XSLTCALL xsltGetCNsProp | ( | xsltStylesheetPtr | style, |
| xmlNodePtr | node, | ||
| const xmlChar * | name, | ||
| const xmlChar * | nameSpace | ||
| ) |
Definition at line 76 of file xsltutils.c.
Referenced by xsltApplyTemplatesComp(), xsltCopyComp(), xsltCopyOfComp(), xsltForEachComp(), xsltGetQNameProperty(), xsltIfComp(), xsltNumberComp(), xsltParamComp(), xsltSortComp(), xsltTextComp(), xsltValueOfComp(), xsltVariableComp(), xsltWhenComp(), and xsltWithParamComp().
| XSLTPUBFUN int XSLTCALL xsltGetDebuggerStatus | ( | void | ) |
xsltGetDebuggerStatus:
Get xslDebugStatus.
Returns the value of xslDebugStatus.
Definition at line 2613 of file xsltutils.c.
| XSLTPUBFUN xmlChar *XSLTCALL xsltGetNsProp | ( | xmlNodePtr | node, |
| const xmlChar * | name, | ||
| const xmlChar * | nameSpace | ||
| ) |
Definition at line 166 of file xsltutils.c.
Referenced by xsltEvalAttrValueTemplate(), and xsltEvalStaticAttrValueTemplate().
| XSLTPUBFUN const xmlChar *XSLTCALL xsltGetQNameURI | ( | xmlNodePtr | node, |
| xmlChar ** | name | ||
| ) |
Definition at line 837 of file xsltutils.c.
Referenced by xsltCompileStepPattern(), xsltDocumentElem(), xsltParseStylesheetDecimalFormat(), xsltParseStylesheetKey(), xsltParseStylesheetOutput(), xsltParseStylesheetPreserveSpace(), xsltParseStylesheetStripSpace(), and xsltParseStylesheetTemplate().
| XSLTPUBFUN const xmlChar *XSLTCALL xsltGetQNameURI2 | ( | xsltStylesheetPtr | style, |
| xmlNodePtr | node, | ||
| const xmlChar ** | name | ||
| ) |
Definition at line 911 of file xsltutils.c.
Referenced by xsltGetQNameProperty().
xsltGetUTF8Char: @utf: a sequence of UTF-8 encoded bytes @len: a pointer to @bytes len
Read one UTF8 Char from @utf Function copied from libxml2 xmlGetUTF8Char() ... to discard ultimately and use the original API
Returns the char value or -1 in case of error and update @len with the number of bytes used
Definition at line 251 of file xsltutils.c.
Referenced by xsltFormatNumberConversion(), and xsltNumberComp().
| XSLTPUBFUN void XSLTCALL xsltMessage | ( | xsltTransformContextPtr | ctxt, |
| xmlNodePtr | node, | ||
| xmlNodePtr | inst | ||
| ) |
xsltMessage: @ctxt: an XSLT processing context @node: The current node @inst: The node containing the message instruction
Process and xsl:message construct
Definition at line 492 of file xsltutils.c.
Referenced by xsltApplySequenceConstructor(), and xsltMessageWrapper().
| XSLTPUBFUN void XSLTCALL xsltPrintErrorContext | ( | xsltTransformContextPtr | ctxt, |
| xsltStylesheetPtr | style, | ||
| xmlNodePtr | node | ||
| ) |
xsltPrintErrorContext: @ctxt: the transformation context @style: the stylesheet @node: the current node being processed
Display the context of an error.
Definition at line 667 of file xsltutils.c.
Referenced by xsltTransformError().
| XSLTPUBFUN int XSLTCALL xsltSaveResultTo | ( | xmlOutputBufferPtr | buf, |
| xmlDocPtr | result, | ||
| xsltStylesheetPtr | style | ||
| ) |
xsltSaveResultTo: @buf: an output buffer
Save the result
Returns the number of byte written or -1 in case of failure.
Definition at line 1564 of file xsltutils.c.
Referenced by xsltRunStylesheetUser(), xsltSaveResultToFd(), xsltSaveResultToFile(), xsltSaveResultToFilename(), and xsltSaveResultToString().
| XSLTPUBFUN int XSLTCALL xsltSaveResultToFd | ( | int | fd, |
| xmlDocPtr | result, | ||
| xsltStylesheetPtr | style | ||
| ) |
xsltSaveResultToFd: @fd: a file descriptor
Save the result
Returns the number of bytes written or -1 in case of failure.
Definition at line 1826 of file xsltutils.c.
| XSLTPUBFUN int XSLTCALL xsltSaveResultToFile | ( | FILE * | file, |
| xmlDocPtr | result, | ||
| xsltStylesheetPtr | style | ||
| ) |
Definition at line 1783 of file xsltutils.c.
Referenced by xsltDocumentElem().
| XSLTPUBFUN int XSLTCALL xsltSaveResultToFilename | ( | const char * | URL, |
| xmlDocPtr | result, | ||
| xsltStylesheetPtr | style, | ||
| int | compression | ||
| ) |
xsltSaveResultToFilename: @URL: a filename or URL
Save the result
Returns the number of byte written or -1 in case of failure.
Definition at line 1740 of file xsltutils.c.
Referenced by xsltDocumentElem(), and xsltRunStylesheetUser().
| XSLTPUBFUN int XSLTCALL xsltSaveResultToString | ( | xmlChar ** | doc_txt_ptr, |
| int * | doc_txt_len, | ||
| xmlDocPtr | result, | ||
| xsltStylesheetPtr | style | ||
| ) |
xsltSaveResultToString: @doc_txt_ptr: Memory pointer for allocated XML text @doc_txt_len: Length of the generated XML text
Save the result
Returns 0 in case of success and -1 in case of error
Definition at line 1868 of file xsltutils.c.
| XSLTPUBFUN void XSLTCALL xsltSetCtxtLocaleHandlers | ( | xsltTransformContextPtr | ctxt, |
| xsltNewLocaleFunc | newLocale, | ||
| xsltFreeLocaleFunc | freeLocale, | ||
| xsltGenSortKeyFunc | genSortKey | ||
| ) |
xsltSetCtxtLocaleHandlers: @ctxt: an XSLT transform context @newLocale: locale constructor @freeLocale: locale destructor @genSortKey: sort key generator
Set the locale handlers.
Definition at line 1500 of file xsltutils.c.
| XSLTPUBFUN void XSLTCALL XSLTPUBFUN int XSLTCALL xsltSetCtxtParseOptions | ( | xsltTransformContextPtr | ctxt, |
| int | options | ||
| ) |
xsltSetCtxtParseOptions: @ctxt: a XSLT process context @options: a combination of libxml2 xmlParserOption
Change the default parser option passed by the XSLT engine to the parser when using document() loading.
Returns the previous options or -1 in case of error
Definition at line 1529 of file xsltutils.c.
| XSLTPUBFUN void XSLTCALL xsltSetCtxtSortFunc | ( | xsltTransformContextPtr | ctxt, |
| xsltSortFunc | handler | ||
| ) |
xsltSetCtxtSortFunc: @ctxt: a XSLT process context @handler: the new handler function
DEPRECATED: Use xsltSetCtxtLocaleHandlers.
Function to set the handler for XSLT sorting for the specified context. If the handler is NULL, then the global sort function will be called
Definition at line 1486 of file xsltutils.c.
| XSLTPUBFUN void XSLTCALL xsltSetGenericDebugFunc | ( | void * | ctx, |
| xmlGenericErrorFunc | handler | ||
| ) |
xsltSetGenericDebugFunc: @ctx: the new error handling context @handler: the new handler function
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.
Definition at line 650 of file xsltutils.c.
| XSLTPUBFUN void XSLTCALL xsltSetGenericErrorFunc | ( | void * | ctx, |
| xmlGenericErrorFunc | handler | ||
| ) |
xsltSetGenericErrorFunc: @ctx: the new error handling context @handler: the new handler function
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.
Definition at line 604 of file xsltutils.c.
| XSLTPUBFUN void XSLTCALL xsltSetSortFunc | ( | xsltSortFunc | handler | ) |
xsltSetSortFunc: @handler: the new handler function
DEPRECATED: Use xsltSetCtxtLocaleHandlers.
Function to reset the global handler for XSLT sorting. If the handler is NULL, the default sort function will be used.
Definition at line 1466 of file xsltutils.c.
| XSLTPUBFUN void XSLTCALL xsltSetTransformErrorFunc | ( | xsltTransformContextPtr | ctxt, |
| void * | ctx, | ||
| xmlGenericErrorFunc | handler | ||
| ) |
xsltSetTransformErrorFunc: @ctxt: the XSLT transformation context @ctx: the new error handling context @handler: the new handler function
Function to reset the handler and the error context for out of context error messages specific to a given XSLT transromation.
This simply means that @handler will be called for subsequent error messages while running the transformation.
Definition at line 743 of file xsltutils.c.
| XSLTPUBFUN const xmlChar *XSLTCALL xsltSplitQName | ( | xmlDictPtr | dict, |
| const xmlChar * | name, | ||
| const xmlChar ** | prefix | ||
| ) |
Definition at line 804 of file xsltutils.c.
Referenced by xsltApplyAttributeSet(), xsltAttribute(), xsltAttributeComp(), xsltElement(), xsltElementComp(), xsltFormatNumberFunction(), xsltParseStylesheetAttributeSet(), and xsltProcessUserParamInternal().
| XSLTPUBFUN void XSLTCALL xsltTransformError | ( | xsltTransformContextPtr | ctxt, |
| xsltStylesheetPtr | style, | ||
| xmlNodePtr | node, | ||
| const char * | msg, | ||
| ... | |||
| ) |
| XSLTPUBFUN xmlXPathCompExprPtr XSLTCALL xsltXPathCompile | ( | xsltStylesheetPtr | style, |
| const xmlChar * | str | ||
| ) |
xsltXPathCompile: @style: the stylesheet @str: the XPath expression
Compile an XPath expression
Returns the xmlXPathCompExprPtr resulting from the compilation or NULL. the caller has to free the object.
Definition at line 2593 of file xsltutils.c.
Referenced by xsltAddKey(), xsltApplyTemplatesComp(), xsltCompileAttr(), xsltCopyOfComp(), xsltForEachComp(), xsltIfComp(), xsltParamComp(), xsltSortComp(), xsltValueOfComp(), xsltVariableComp(), xsltWhenComp(), and xsltWithParamComp().
| XSLTPUBFUN xmlXPathCompExprPtr XSLTCALL xsltXPathCompileFlags | ( | xsltStylesheetPtr | style, |
| const xmlChar * | str, | ||
| int | flags | ||
| ) |
xsltXPathCompileFlags: @style: the stylesheet @str: the XPath expression @flags: extra compilation flags to pass down to libxml2 XPath
Compile an XPath expression
Returns the xmlXPathCompExprPtr resulting from the compilation or NULL. the caller has to free the object.
Definition at line 2550 of file xsltutils.c.
Referenced by xsltAddKey(), xsltCompMatchAdd(), and xsltXPathCompile().
| XSLTPUBVAR int xslDebugStatus |
Definition at line 316 of file xsltutils.h.
| XSLTPUBVAR xmlGenericErrorFunc xsltGenericDebug |
Definition at line 146 of file xsltutils.h.
| XSLTPUBVAR void* xsltGenericDebugContext |
Definition at line 147 of file xsltutils.h.
| XSLTPUBVAR xmlGenericErrorFunc xsltGenericError |
Definition at line 144 of file xsltutils.h.
| XSLTPUBVAR void* xsltGenericErrorContext |
Definition at line 145 of file xsltutils.h.