Eneboo - Documentación para desarrolladores
|
00001 /* 00002 * Summary: interface for the XSLT import support 00003 * Description: macros and fuctions needed to implement and 00004 * access the import tree 00005 * 00006 * Copy: See Copyright for the status of this software. 00007 * 00008 * Author: Daniel Veillard 00009 */ 00010 00011 #ifndef __XML_XSLT_IMPORTS_H__ 00012 #define __XML_XSLT_IMPORTS_H__ 00013 00014 #include <libxml/tree.h> 00015 #include "xsltexports.h" 00016 #include "xsltInternals.h" 00017 00018 #ifdef __cplusplus 00019 extern "C" { 00020 #endif 00021 00027 #define XSLT_GET_IMPORT_PTR(res, style, name) { \ 00028 xsltStylesheetPtr st = style; \ 00029 res = NULL; \ 00030 while (st != NULL) { \ 00031 if (st->name != NULL) { res = st->name; break; } \ 00032 st = xsltNextImport(st); \ 00033 }} 00034 00040 #define XSLT_GET_IMPORT_INT(res, style, name) { \ 00041 xsltStylesheetPtr st = style; \ 00042 res = -1; \ 00043 while (st != NULL) { \ 00044 if (st->name != -1) { res = st->name; break; } \ 00045 st = xsltNextImport(st); \ 00046 }} 00047 00048 /* 00049 * Module interfaces 00050 */ 00051 XSLTPUBFUN int XSLTCALL 00052 xsltParseStylesheetImport(xsltStylesheetPtr style, 00053 xmlNodePtr cur); 00054 XSLTPUBFUN int XSLTCALL 00055 xsltParseStylesheetInclude 00056 (xsltStylesheetPtr style, 00057 xmlNodePtr cur); 00058 XSLTPUBFUN xsltStylesheetPtr XSLTCALL 00059 xsltNextImport (xsltStylesheetPtr style); 00060 XSLTPUBFUN int XSLTCALL 00061 xsltNeedElemSpaceHandling(xsltTransformContextPtr ctxt); 00062 XSLTPUBFUN int XSLTCALL 00063 xsltFindElemSpaceHandling(xsltTransformContextPtr ctxt, 00064 xmlNodePtr node); 00065 XSLTPUBFUN xsltTemplatePtr XSLTCALL 00066 xsltFindTemplate (xsltTransformContextPtr ctxt, 00067 const xmlChar *name, 00068 const xmlChar *nameURI); 00069 00070 #ifdef __cplusplus 00071 } 00072 #endif 00073 00074 #endif /* __XML_XSLT_IMPORTS_H__ */ 00075