Path: blob/master/venv/Lib/site-packages/lxml/includes/libxslt/variables.h
811 views
/*1* Summary: interface for the variable matching and lookup.2* Description: interface for the variable matching and lookup.3*4* Copy: See Copyright for the status of this software.5*6* Author: Daniel Veillard7*/89#ifndef __XML_XSLT_VARIABLES_H__10#define __XML_XSLT_VARIABLES_H__1112#include <libxml/xpath.h>13#include <libxml/xpathInternals.h>14#include "xsltexports.h"15#include "xsltInternals.h"16#include "functions.h"1718#ifdef __cplusplus19extern "C" {20#endif212223/**24* XSLT_REGISTER_VARIABLE_LOOKUP:25*26* Registering macro, not general purpose at all but used in different modules.27*/2829#define XSLT_REGISTER_VARIABLE_LOOKUP(ctxt) \30xmlXPathRegisterVariableLookup((ctxt)->xpathCtxt, \31xsltXPathVariableLookup, (void *)(ctxt)); \32xsltRegisterAllFunctions((ctxt)->xpathCtxt); \33xsltRegisterAllElement(ctxt); \34(ctxt)->xpathCtxt->extra = ctxt3536/*37* Flags for memory management of RVTs38*/3940/**41* XSLT_RVT_LOCAL:42*43* RVT is destroyed after the current instructions ends.44*/45#define XSLT_RVT_LOCAL ((void *)1)4647/**48* XSLT_RVT_VARIABLE:49*50* RVT is part of a local variable and destroyed after the variable goes out51* of scope.52*/53#define XSLT_RVT_VARIABLE ((void *)2)5455/**56* XSLT_RVT_FUNC_RESULT:57*58* RVT is part of results returned with func:result. The RVT won't be59* destroyed after exiting a template and will be reset to XSLT_RVT_LOCAL or60* XSLT_RVT_VARIABLE in the template that receives the return value.61*/62#define XSLT_RVT_FUNC_RESULT ((void *)3)6364/**65* XSLT_RVT_GLOBAL:66*67* RVT is part of a global variable.68*/69#define XSLT_RVT_GLOBAL ((void *)4)7071/*72* Interfaces for the variable module.73*/7475XSLTPUBFUN int XSLTCALL76xsltEvalGlobalVariables (xsltTransformContextPtr ctxt);77XSLTPUBFUN int XSLTCALL78xsltEvalUserParams (xsltTransformContextPtr ctxt,79const char **params);80XSLTPUBFUN int XSLTCALL81xsltQuoteUserParams (xsltTransformContextPtr ctxt,82const char **params);83XSLTPUBFUN int XSLTCALL84xsltEvalOneUserParam (xsltTransformContextPtr ctxt,85const xmlChar * name,86const xmlChar * value);87XSLTPUBFUN int XSLTCALL88xsltQuoteOneUserParam (xsltTransformContextPtr ctxt,89const xmlChar * name,90const xmlChar * value);9192XSLTPUBFUN void XSLTCALL93xsltParseGlobalVariable (xsltStylesheetPtr style,94xmlNodePtr cur);95XSLTPUBFUN void XSLTCALL96xsltParseGlobalParam (xsltStylesheetPtr style,97xmlNodePtr cur);98XSLTPUBFUN void XSLTCALL99xsltParseStylesheetVariable (xsltTransformContextPtr ctxt,100xmlNodePtr cur);101XSLTPUBFUN void XSLTCALL102xsltParseStylesheetParam (xsltTransformContextPtr ctxt,103xmlNodePtr cur);104XSLTPUBFUN xsltStackElemPtr XSLTCALL105xsltParseStylesheetCallerParam (xsltTransformContextPtr ctxt,106xmlNodePtr cur);107XSLTPUBFUN int XSLTCALL108xsltAddStackElemList (xsltTransformContextPtr ctxt,109xsltStackElemPtr elems);110XSLTPUBFUN void XSLTCALL111xsltFreeGlobalVariables (xsltTransformContextPtr ctxt);112XSLTPUBFUN xmlXPathObjectPtr XSLTCALL113xsltVariableLookup (xsltTransformContextPtr ctxt,114const xmlChar *name,115const xmlChar *ns_uri);116XSLTPUBFUN xmlXPathObjectPtr XSLTCALL117xsltXPathVariableLookup (void *ctxt,118const xmlChar *name,119const xmlChar *ns_uri);120#ifdef __cplusplus121}122#endif123124#endif /* __XML_XSLT_VARIABLES_H__ */125126127128