2 * Summary: interface for the XSLT functions not from XPath
3 * Description: a set of extra functions coming from XSLT but not in XPath
5 * Copy: See Copyright for the status of this software.
7 * Author: Daniel Veillard and Bjorn Reese <breese@users.sourceforge.net>
10 #ifndef __XML_XSLT_FUNCTIONS_H__
11 #define __XML_XSLT_FUNCTIONS_H__
13 #include <libxml/xpath.h>
14 #include <libxml/xpathInternals.h>
15 #include "xsltexports.h"
16 #include "xsltInternals.h"
23 * XSLT_REGISTER_FUNCTION_LOOKUP:
25 * Registering macro, not general purpose at all but used in different modules.
27 #define XSLT_REGISTER_FUNCTION_LOOKUP(ctxt) \
28 xmlXPathRegisterFuncLookup((ctxt)->xpathCtxt, \
29 xsltXPathFunctionLookup, \
30 (void *)(ctxt->xpathCtxt));
32 XSLTPUBFUN xmlXPathFunction XSLTCALL
33 xsltXPathFunctionLookup (void *vctxt
,
35 const xmlChar
*ns_uri
);
38 * Interfaces for the functions implementations.
41 XSLTPUBFUN
void XSLTCALL
42 xsltDocumentFunction (xmlXPathParserContextPtr ctxt
,
44 XSLTPUBFUN
void XSLTCALL
45 xsltKeyFunction (xmlXPathParserContextPtr ctxt
,
47 XSLTPUBFUN
void XSLTCALL
48 xsltUnparsedEntityURIFunction (xmlXPathParserContextPtr ctxt
,
50 XSLTPUBFUN
void XSLTCALL
51 xsltFormatNumberFunction (xmlXPathParserContextPtr ctxt
,
53 XSLTPUBFUN
void XSLTCALL
54 xsltGenerateIdFunction (xmlXPathParserContextPtr ctxt
,
56 XSLTPUBFUN
void XSLTCALL
57 xsltSystemPropertyFunction (xmlXPathParserContextPtr ctxt
,
59 XSLTPUBFUN
void XSLTCALL
60 xsltElementAvailableFunction (xmlXPathParserContextPtr ctxt
,
62 XSLTPUBFUN
void XSLTCALL
63 xsltFunctionAvailableFunction (xmlXPathParserContextPtr ctxt
,
67 * And the registration
70 XSLTPUBFUN
void XSLTCALL
71 xsltRegisterAllFunctions (xmlXPathContextPtr ctxt
);
77 #endif /* __XML_XSLT_FUNCTIONS_H__ */