ReactOS 0.4.15-dev-6057-gd708c79
extensions.h
Go to the documentation of this file.
1/*
2 * Summary: interface for the extension support
3 * Description: This provide the API needed for simple and module
4 * extension support.
5 *
6 * Copy: See Copyright for the status of this software.
7 *
8 * Author: Daniel Veillard
9 */
10
11#ifndef __XML_XSLT_EXTENSION_H__
12#define __XML_XSLT_EXTENSION_H__
13
14#include <libxml/xpath.h>
15#include "xsltexports.h"
16#include "xsltInternals.h"
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
34 xsltInitGlobals (void);
35
45typedef void * (*xsltStyleExtInitFunction) (xsltStylesheetPtr style,
46 const xmlChar *URI);
47
57 const xmlChar *URI,
58 void *data);
59
69typedef void * (*xsltExtInitFunction) (xsltTransformContextPtr ctxt,
70 const xmlChar *URI);
71
81 const xmlChar *URI,
82 void *data);
83
86 xsltExtInitFunction initFunc,
87 xsltExtShutdownFunction shutdownFunc);
90 (const xmlChar * URI,
91 xsltExtInitFunction initFunc,
92 xsltExtShutdownFunction shutdownFunc,
93 xsltStyleExtInitFunction styleInitFunc,
94 xsltStyleExtShutdownFunction styleShutdownFunc);
95
97 xsltUnregisterExtModule (const xmlChar * URI);
98
101 const xmlChar *URI);
102
103XSLTPUBFUN void * XSLTCALL
105 const xmlChar *URI);
106#ifdef XSLT_REFACTORED
107XSLTPUBFUN void * XSLTCALL
108 xsltStyleStylesheetLevelGetExtData(
110 const xmlChar * URI);
111#endif
114
117
120 (xmlXPathParserContextPtr ctxt);
121
122/*
123 * extension functions
124*/
127 (const xmlChar *name,
128 const xmlChar *URI,
129 xmlXPathFunction function);
130XSLTPUBFUN xmlXPathFunction XSLTCALL
132 const xmlChar *URI);
135 (const xmlChar *name,
136 const xmlChar *URI);
137
138/*
139 * extension elements
140 */
143 xmlNodePtr inst,
144 xsltTransformFunction function);
145
148 xmlNodePtr inst,
149 xsltTransformFunction function);
153 xmlNodePtr inst,
154 xsltTransformFunction function,
156
159 (const xmlChar *name,
160 const xmlChar *URI,
165 const xmlChar *name,
166 const xmlChar *URI);
169 (const xmlChar *name,
170 const xmlChar *URI);
173 (const xmlChar *name,
174 const xmlChar *URI);
177 (const xmlChar *name,
178 const xmlChar *URI);
179
180/*
181 * top-level elements
182 */
184 xmlNodePtr inst);
185
188 (const xmlChar *name,
189 const xmlChar *URI,
190 xsltTopLevelFunction function);
193 (const xmlChar *name,
194 const xmlChar *URI);
197 (const xmlChar *name,
198 const xmlChar *URI);
199
200
201/* These 2 functions are deprecated for use within modules. */
204 const xmlChar *name,
205 const xmlChar *URI,
206 xmlXPathFunction function);
209 const xmlChar *name,
210 const xmlChar *URI,
211 xsltTransformFunction function);
212
213/*
214 * Extension Prefix handling API.
215 * Those are used by the XSLT (pre)processor.
216 */
217
220 const xmlChar *prefix,
221 const xmlChar *URI);
224 const xmlChar *URI);
227 const xmlChar *URI);
234
238 xmlNodePtr inst);
239/*
240 * Extension Infos access.
241 * Used by exslt initialisation
242 */
243
246 const xmlChar *URI);
247
254 xsltDebugDumpExtensions (FILE * output);
255
256
257#ifdef __cplusplus
258}
259#endif
260
261#endif /* __XML_XSLT_EXTENSION_H__ */
262
Arabic default style
Definition: afstyles.h:94
XSLTPUBFUN void XSLTCALL xsltRegisterTestModule(void)
Definition: extensions.c:2225
void(* xsltStyleExtShutdownFunction)(xsltStylesheetPtr style, const xmlChar *URI, void *data)
Definition: extensions.h:56
XSLTPUBFUN void XSLTCALL xsltInitGlobals(void)
Definition: extensions.c:2257
XSLTPUBFUN xsltPreComputeFunction XSLTCALL xsltExtModuleElementPreComputeLookup(const xmlChar *name, const xmlChar *URI)
Definition: extensions.c:1741
XSLTPUBFUN xsltTopLevelFunction XSLTCALL xsltExtModuleTopLevelLookup(const xmlChar *name, const xmlChar *URI)
Definition: extensions.c:1856
XSLTPUBFUN xsltTransformContextPtr XSLTCALL xsltXPathGetTransformContext(xmlXPathParserContextPtr ctxt)
Definition: extensions.c:1367
XSLTPUBFUN int XSLTCALL xsltUnregisterExtModuleFunction(const xmlChar *name, const xmlChar *URI)
Definition: extensions.c:1454
XSLTPUBFUN xmlXPathFunction XSLTCALL xsltExtModuleFunctionLookup(const xmlChar *name, const xmlChar *URI)
Definition: extensions.c:1416
XSLTPUBFUN xmlHashTablePtr XSLTCALL xsltGetExtInfo(xsltStylesheetPtr style, const xmlChar *URI)
Definition: extensions.c:1935
XSLTPUBFUN int XSLTCALL xsltRegisterExtElement(xsltTransformContextPtr ctxt, const xmlChar *name, const xmlChar *URI, xsltTransformFunction function)
Definition: extensions.c:621
XSLTPUBFUN int XSLTCALL xsltUnregisterExtModuleTopLevel(const xmlChar *name, const xmlChar *URI)
Definition: extensions.c:1893
XSLTPUBFUN int XSLTCALL xsltRegisterExtModule(const xmlChar *URI, xsltExtInitFunction initFunc, xsltExtShutdownFunction shutdownFunc)
Definition: extensions.c:1300
XSLTPUBFUN int XSLTCALL xsltRegisterExtPrefix(xsltStylesheetPtr style, const xmlChar *prefix, const xmlChar *URI)
Definition: extensions.c:503
XSLTPUBFUN int XSLTCALL xsltRegisterExtFunction(xsltTransformContextPtr ctxt, const xmlChar *name, const xmlChar *URI, xmlXPathFunction function)
Definition: extensions.c:587
XSLTPUBFUN int XSLTCALL xsltRegisterExtModuleFunction(const xmlChar *name, const xmlChar *URI, xmlXPathFunction function)
Definition: extensions.c:1385
XSLTPUBFUN void *XSLTCALL xsltGetExtData(xsltTransformContextPtr ctxt, const xmlChar *URI)
Definition: extensions.c:862
XSLTPUBFUN void XSLTCALL xsltDebugDumpExtensions(FILE *output)
Definition: extensions.c:2323
void(* xsltTopLevelFunction)(xsltStylesheetPtr style, xmlNodePtr inst)
Definition: extensions.h:183
void *(* xsltExtInitFunction)(xsltTransformContextPtr ctxt, const xmlChar *URI)
Definition: extensions.h:69
XSLTPUBFUN int XSLTCALL xsltUnregisterExtModuleElement(const xmlChar *name, const xmlChar *URI)
Definition: extensions.c:1781
XSLTPUBFUN void *XSLTCALL xsltStyleGetExtData(xsltStylesheetPtr style, const xmlChar *URI)
Definition: extensions.c:756
XSLTPUBFUN void XSLTCALL xsltFreeCtxtExts(xsltTransformContextPtr ctxt)
Definition: extensions.c:642
XSLTPUBFUN int XSLTCALL xsltCheckExtURI(xsltStylesheetPtr style, const xmlChar *URI)
Definition: extensions.c:1218
void *(* xsltStyleExtInitFunction)(xsltStylesheetPtr style, const xmlChar *URI)
Definition: extensions.h:45
XSLTPUBFUN xsltTransformFunction XSLTCALL xsltExtModuleElementLookup(const xmlChar *name, const xmlChar *URI)
Definition: extensions.c:1698
XSLTPUBFUN int XSLTCALL xsltCheckExtPrefix(xsltStylesheetPtr style, const xmlChar *URI)
Definition: extensions.c:1158
XSLTPUBFUN xsltElemPreCompPtr XSLTCALL xsltPreComputeExtModuleElement(xsltStylesheetPtr style, xmlNodePtr inst)
Definition: extensions.c:1558
XSLTPUBFUN xsltElemPreCompPtr XSLTCALL xsltNewElemPreComp(xsltStylesheetPtr style, xmlNodePtr inst, xsltTransformFunction function)
Definition: extensions.c:1503
void(* xsltExtShutdownFunction)(xsltTransformContextPtr ctxt, const xmlChar *URI, void *data)
Definition: extensions.h:80
XSLTPUBFUN void XSLTCALL xsltFreeExts(xsltStylesheetPtr style)
Definition: extensions.c:479
XSLTPUBFUN xsltTransformFunction XSLTCALL xsltExtElementLookup(xsltTransformContextPtr ctxt, const xmlChar *name, const xmlChar *URI)
Definition: extensions.c:1668
XSLTPUBFUN void XSLTCALL xsltShutdownCtxtExts(xsltTransformContextPtr ctxt)
Definition: extensions.c:1081
XSLTPUBFUN void XSLTCALL xsltInitElemPreComp(xsltElemPreCompPtr comp, xsltStylesheetPtr style, xmlNodePtr inst, xsltTransformFunction function, xsltElemPreCompDeallocator freeFunc)
Definition: extensions.c:1535
XSLTPUBFUN int XSLTCALL xsltRegisterExtModuleElement(const xmlChar *name, const xmlChar *URI, xsltPreComputeFunction precomp, xsltTransformFunction transform)
Definition: extensions.c:1623
xsltElemPreCompPtr(* xsltPreComputeFunction)(xsltStylesheetPtr style, xmlNodePtr inst, xsltTransformFunction function)
Definition: extensions.h:142
XSLTPUBFUN int XSLTCALL xsltRegisterExtModuleFull(const xmlChar *URI, xsltExtInitFunction initFunc, xsltExtShutdownFunction shutdownFunc, xsltStyleExtInitFunction styleInitFunc, xsltStyleExtShutdownFunction styleShutdownFunc)
Definition: extensions.c:1248
XSLTPUBFUN void XSLTCALL xsltShutdownExts(xsltStylesheetPtr style)
Definition: extensions.c:1133
XSLTPUBFUN int XSLTCALL xsltRegisterExtModuleTopLevel(const xmlChar *name, const xmlChar *URI, xsltTopLevelFunction function)
Definition: extensions.c:1825
XSLTPUBFUN int XSLTCALL xsltInitCtxtExts(xsltTransformContextPtr ctxt)
Definition: extensions.c:1016
XSLTPUBFUN int XSLTCALL xsltUnregisterExtModule(const xmlChar *URI)
Definition: extensions.c:1317
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
GLuint GLenum GLenum transform
Definition: glext.h:9407
Definition: tree.h:489
Definition: name.c:39
unsigned char xmlChar
Definition: xmlstring.h:28
xsltElemPreComp * xsltElemPreCompPtr
void(* xsltElemPreCompDeallocator)(xsltElemPreCompPtr comp)
void(* xsltTransformFunction)(xsltTransformContextPtr ctxt, xmlNodePtr node, xmlNodePtr inst, xsltElemPreCompPtr comp)
#define XSLTCALL
Definition: xsltexports.h:39
#define XSLTPUBFUN
Definition: xsltexports.h:48