2 * Summary: interface for the pattern matching used in template matches.
3 * Description: the implementation of the lookup of the right template
4 * for a given node must be really fast in order to keep
7 * Copy: See Copyright for the status of this software.
9 * Author: Daniel Veillard
12 #ifndef __XML_XSLT_PATTERN_H__
13 #define __XML_XSLT_PATTERN_H__
15 #include "xsltInternals.h"
16 #include "xsltexports.h"
25 * Data structure used for the implementation of patterns.
26 * It is kept private (in pattern.c).
28 typedef struct _xsltCompMatch xsltCompMatch;
29 typedef xsltCompMatch *xsltCompMatchPtr;
32 * Pattern related interfaces.
35 XSLTPUBFUN xsltCompMatchPtr XSLTCALL
36 xsltCompilePattern (const xmlChar *pattern,
39 xsltStylesheetPtr style,
40 xsltTransformContextPtr runtime);
41 XSLTPUBFUN void XSLTCALL
42 xsltFreeCompMatchList (xsltCompMatchPtr comp);
43 XSLTPUBFUN int XSLTCALL
44 xsltTestCompMatchList (xsltTransformContextPtr ctxt,
46 xsltCompMatchPtr comp);
47 XSLTPUBFUN void XSLTCALL
48 xsltNormalizeCompSteps (void *payload,
53 * Template related interfaces.
55 XSLTPUBFUN int XSLTCALL
56 xsltAddTemplate (xsltStylesheetPtr style,
59 const xmlChar *modeURI);
60 XSLTPUBFUN xsltTemplatePtr XSLTCALL
61 xsltGetTemplate (xsltTransformContextPtr ctxt,
63 xsltStylesheetPtr style);
64 XSLTPUBFUN void XSLTCALL
65 xsltFreeTemplateHashes (xsltStylesheetPtr style);
66 XSLTPUBFUN void XSLTCALL
67 xsltCleanupTemplates (xsltStylesheetPtr style);
70 int xsltMatchPattern (xsltTransformContextPtr ctxt,
72 const xmlChar *pattern,
80 #endif /* __XML_XSLT_PATTERN_H__ */