2 * xsltutils.h: interfaces for the utilities module of the XSLT engine
4 * See Copyright for the status of this software.
6 * Daniel.Veillard@w3.org
9 #ifndef __XML_XSLTUTILS_H__
10 #define __XML_XSLTUTILS_H__
12 #include <libxml/xpath.h>
13 #include <libxml/xmlerror.h>
22 xmlChar *xmlSplitQName2(const xmlChar *name, xmlChar **prefix);
23 void xmlXPathBooleanFunction(xmlXPathParserContextPtr ctxt, int nargs);
30 xsltGenericError(xsltGenericErrorContext, \
31 "Unimplemented block at %s:%d\n", \
35 xsltGenericError(xsltGenericErrorContext, \
36 "Internal error at %s:%d\n", \
39 #define IS_XSLT_ELEM(n) \
40 ((n)->ns != NULL) && (xmlStrEqual((n)->ns->href, XSLT_NAMESPACE))
42 #define IS_XSLT_NAME(n, val) \
43 (xmlStrEqual((n)->name, (const xmlChar *) (val)))
47 * XSLT specific error and debug reporting functions
49 extern xmlGenericErrorFunc xsltGenericError;
50 extern void *xsltGenericErrorContext;
51 extern xmlGenericErrorFunc xsltGenericDebug;
52 extern void *xsltGenericDebugContext;
54 void xsltSetGenericErrorFunc (void *ctx,
55 xmlGenericErrorFunc handler);
56 void xsltSetGenericDebugFunc (void *ctx,
57 xmlGenericErrorFunc handler);
62 #endif /* __XML_XSLTUTILS_H__ */