Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-16 10:19:33

0001 /*
0002  * Summary: interface for the XSLT import support
0003  * Description: macros and fuctions needed to implement and
0004  *              access the import tree
0005  *
0006  * Copy: See Copyright for the status of this software.
0007  *
0008  * Author: Daniel Veillard
0009  */
0010 
0011 #ifndef __XML_XSLT_IMPORTS_H__
0012 #define __XML_XSLT_IMPORTS_H__
0013 
0014 #include <libxml/tree.h>
0015 #include "xsltexports.h"
0016 #include "xsltInternals.h"
0017 
0018 #ifdef __cplusplus
0019 extern "C" {
0020 #endif
0021 
0022 /**
0023  * XSLT_GET_IMPORT_PTR:
0024  *
0025  * A macro to import pointers from the stylesheet cascading order.
0026  */
0027 #define XSLT_GET_IMPORT_PTR(res, style, name) {         \
0028     xsltStylesheetPtr st = style;               \
0029     res = NULL;                         \
0030     while (st != NULL) {                    \
0031     if (st->name != NULL) { res = st->name; break; }    \
0032     st = xsltNextImport(st);                \
0033     }}
0034 
0035 /**
0036  * XSLT_GET_IMPORT_INT:
0037  *
0038  * A macro to import intergers from the stylesheet cascading order.
0039  */
0040 #define XSLT_GET_IMPORT_INT(res, style, name) {         \
0041     xsltStylesheetPtr st = style;               \
0042     res = -1;                           \
0043     while (st != NULL) {                    \
0044     if (st->name != -1) { res = st->name; break; }  \
0045     st = xsltNextImport(st);                \
0046     }}
0047 
0048 /*
0049  * Module interfaces
0050  */
0051 XSLTPUBFUN int XSLTCALL
0052             xsltParseStylesheetImport(xsltStylesheetPtr style,
0053                           xmlNodePtr cur);
0054 XSLTPUBFUN int XSLTCALL
0055             xsltParseStylesheetInclude
0056                          (xsltStylesheetPtr style,
0057                           xmlNodePtr cur);
0058 XSLTPUBFUN xsltStylesheetPtr XSLTCALL
0059             xsltNextImport       (xsltStylesheetPtr style);
0060 XSLTPUBFUN int XSLTCALL
0061             xsltNeedElemSpaceHandling(xsltTransformContextPtr ctxt);
0062 XSLTPUBFUN int XSLTCALL
0063             xsltFindElemSpaceHandling(xsltTransformContextPtr ctxt,
0064                           xmlNodePtr node);
0065 XSLTPUBFUN xsltTemplatePtr XSLTCALL
0066             xsltFindTemplate     (xsltTransformContextPtr ctxt,
0067                           const xmlChar *name,
0068                           const xmlChar *nameURI);
0069 
0070 #ifdef __cplusplus
0071 }
0072 #endif
0073 
0074 #endif /* __XML_XSLT_IMPORTS_H__ */
0075