2 * Summary: interface for the XSLT import support
3 * Description: macros and fuctions needed to implement and
4 * access the import tree
6 * Copy: See Copyright for the status of this software.
8 * Author: Daniel Veillard
11 #ifndef __XML_XSLT_IMPORTS_H__
12 #define __XML_XSLT_IMPORTS_H__
14 #include <libxml/tree.h>
15 #include "xsltexports.h"
16 #include "xsltInternals.h"
23 * XSLT_GET_IMPORT_PTR:
25 * A macro to import pointers from the stylesheet cascading order.
27 #define XSLT_GET_IMPORT_PTR(res, style, name) { \
28 xsltStylesheetPtr st = style; \
30 while (st != NULL) { \
31 if (st->name != NULL) { res = st->name; break; } \
32 st = xsltNextImport(st); \
36 * XSLT_GET_IMPORT_INT:
38 * A macro to import intergers from the stylesheet cascading order.
40 #define XSLT_GET_IMPORT_INT(res, style, name) { \
41 xsltStylesheetPtr st = style; \
43 while (st != NULL) { \
44 if (st->name != -1) { res = st->name; break; } \
45 st = xsltNextImport(st); \
51 XSLTPUBFUN
int XSLTCALL
52 xsltParseStylesheetImport(xsltStylesheetPtr style
,
54 XSLTPUBFUN
int XSLTCALL
55 xsltParseStylesheetInclude
56 (xsltStylesheetPtr style
,
58 XSLTPUBFUN xsltStylesheetPtr XSLTCALL
59 xsltNextImport (xsltStylesheetPtr style
);
60 XSLTPUBFUN
int XSLTCALL
61 xsltNeedElemSpaceHandling(xsltTransformContextPtr ctxt
);
62 XSLTPUBFUN
int XSLTCALL
63 xsltFindElemSpaceHandling(xsltTransformContextPtr ctxt
,
65 XSLTPUBFUN xsltTemplatePtr XSLTCALL
66 xsltFindTemplate (xsltTransformContextPtr ctxt
,
68 const xmlChar
*nameURI
);
74 #endif /* __XML_XSLT_IMPORTS_H__ */