ReactOS 0.4.15-dev-7918-g2a2556c
functions.h
Go to the documentation of this file.
1/*
2 * Summary: interface for the XSLT functions not from XPath
3 * Description: a set of extra functions coming from XSLT but not in XPath
4 *
5 * Copy: See Copyright for the status of this software.
6 *
7 * Author: Daniel Veillard and Bjorn Reese <breese@users.sourceforge.net>
8 */
9
10#ifndef __XML_XSLT_FUNCTIONS_H__
11#define __XML_XSLT_FUNCTIONS_H__
12
13#include <libxml/xpath.h>
15#include "xsltexports.h"
16#include "xsltInternals.h"
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
27#define XSLT_REGISTER_FUNCTION_LOOKUP(ctxt) \
28 xmlXPathRegisterFuncLookup((ctxt)->xpathCtxt, \
29 xsltXPathFunctionLookup, \
30 (void *)(ctxt->xpathCtxt));
31
32XSLTPUBFUN xmlXPathFunction XSLTCALL
33 xsltXPathFunctionLookup (void *vctxt,
34 const xmlChar *name,
35 const xmlChar *ns_uri);
36
37/*
38 * Interfaces for the functions implementations.
39 */
40
42 xsltDocumentFunction (xmlXPathParserContextPtr ctxt,
43 int nargs);
45 xsltKeyFunction (xmlXPathParserContextPtr ctxt,
46 int nargs);
48 xsltUnparsedEntityURIFunction (xmlXPathParserContextPtr ctxt,
49 int nargs);
51 xsltFormatNumberFunction (xmlXPathParserContextPtr ctxt,
52 int nargs);
54 xsltGenerateIdFunction (xmlXPathParserContextPtr ctxt,
55 int nargs);
57 xsltSystemPropertyFunction (xmlXPathParserContextPtr ctxt,
58 int nargs);
60 xsltElementAvailableFunction (xmlXPathParserContextPtr ctxt,
61 int nargs);
63 xsltFunctionAvailableFunction (xmlXPathParserContextPtr ctxt,
64 int nargs);
65
66/*
67 * And the registration
68 */
69
71 xsltRegisterAllFunctions (xmlXPathContextPtr ctxt);
72
73#ifdef __cplusplus
74}
75#endif
76
77#endif /* __XML_XSLT_FUNCTIONS_H__ */
78
XSLTPUBFUN void XSLTCALL xsltFunctionAvailableFunction(xmlXPathParserContextPtr ctxt, int nargs)
Definition: functions.c:874
XSLTPUBFUN void XSLTCALL xsltRegisterAllFunctions(xmlXPathContextPtr ctxt)
Definition: functions.c:959
XSLTPUBFUN void XSLTCALL xsltKeyFunction(xmlXPathParserContextPtr ctxt, int nargs)
Definition: functions.c:327
XSLTPUBFUN void XSLTCALL xsltDocumentFunction(xmlXPathParserContextPtr ctxt, int nargs)
Definition: functions.c:193
XSLTPUBFUN void XSLTCALL xsltFormatNumberFunction(xmlXPathParserContextPtr ctxt, int nargs)
Definition: functions.c:567
XSLTPUBFUN void XSLTCALL xsltSystemPropertyFunction(xmlXPathParserContextPtr ctxt, int nargs)
Definition: functions.c:713
XSLTPUBFUN xmlXPathFunction XSLTCALL xsltXPathFunctionLookup(void *vctxt, const xmlChar *name, const xmlChar *ns_uri)
Definition: functions.c:40
XSLTPUBFUN void XSLTCALL xsltGenerateIdFunction(xmlXPathParserContextPtr ctxt, int nargs)
Definition: functions.c:653
XSLTPUBFUN void XSLTCALL xsltElementAvailableFunction(xmlXPathParserContextPtr ctxt, int nargs)
Definition: functions.c:807
XSLTPUBFUN void XSLTCALL xsltUnparsedEntityURIFunction(xmlXPathParserContextPtr ctxt, int nargs)
Definition: functions.c:524
Definition: name.c:39
unsigned char xmlChar
Definition: xmlstring.h:28
#define XSLTCALL
Definition: xsltexports.h:39
#define XSLTPUBFUN
Definition: xsltexports.h:48