Path: blob/master/venv/Lib/site-packages/lxml/includes/libxslt/imports.h
811 views
/*1* Summary: interface for the XSLT import support2* Description: macros and fuctions needed to implement and3* access the import tree4*5* Copy: See Copyright for the status of this software.6*7* Author: Daniel Veillard8*/910#ifndef __XML_XSLT_IMPORTS_H__11#define __XML_XSLT_IMPORTS_H__1213#include <libxml/tree.h>14#include "xsltexports.h"15#include "xsltInternals.h"1617#ifdef __cplusplus18extern "C" {19#endif2021/**22* XSLT_GET_IMPORT_PTR:23*24* A macro to import pointers from the stylesheet cascading order.25*/26#define XSLT_GET_IMPORT_PTR(res, style, name) { \27xsltStylesheetPtr st = style; \28res = NULL; \29while (st != NULL) { \30if (st->name != NULL) { res = st->name; break; } \31st = xsltNextImport(st); \32}}3334/**35* XSLT_GET_IMPORT_INT:36*37* A macro to import intergers from the stylesheet cascading order.38*/39#define XSLT_GET_IMPORT_INT(res, style, name) { \40xsltStylesheetPtr st = style; \41res = -1; \42while (st != NULL) { \43if (st->name != -1) { res = st->name; break; } \44st = xsltNextImport(st); \45}}4647/*48* Module interfaces49*/50XSLTPUBFUN int XSLTCALL51xsltParseStylesheetImport(xsltStylesheetPtr style,52xmlNodePtr cur);53XSLTPUBFUN int XSLTCALL54xsltParseStylesheetInclude55(xsltStylesheetPtr style,56xmlNodePtr cur);57XSLTPUBFUN xsltStylesheetPtr XSLTCALL58xsltNextImport (xsltStylesheetPtr style);59XSLTPUBFUN int XSLTCALL60xsltNeedElemSpaceHandling(xsltTransformContextPtr ctxt);61XSLTPUBFUN int XSLTCALL62xsltFindElemSpaceHandling(xsltTransformContextPtr ctxt,63xmlNodePtr node);64XSLTPUBFUN xsltTemplatePtr XSLTCALL65xsltFindTemplate (xsltTransformContextPtr ctxt,66const xmlChar *name,67const xmlChar *nameURI);6869#ifdef __cplusplus70}71#endif7273#endif /* __XML_XSLT_IMPORTS_H__ */74757677