* Summary: interface for the variable matching and lookup.
* Description: interface for the variable matching and lookup.
* Copy: See Copyright for the status of this software.
* Author: Daniel Veillard
#ifndef __XML_XSLT_VARIABLES_H__
#define __XML_XSLT_VARIABLES_H__
#include <libxml/xpath.h>
#include <libxml/xpathInternals.h>
#include "xsltInternals.h"
* XSLT_REGISTER_VARIABLE_LOOKUP:
* Registering macro, not general purpose at all but used in different modules.
#define XSLT_REGISTER_VARIABLE_LOOKUP(ctxt) \
xmlXPathRegisterVariableLookup((ctxt)->xpathCtxt, \
xsltXPathVariableLookup, (void *)(ctxt)); \
xsltRegisterAllFunctions((ctxt)->xpathCtxt); \
xsltRegisterAllElement(ctxt); \
(ctxt)->xpathCtxt->extra = ctxt
* Flags for memory management of RVTs
* RVT is destroyed after the current instructions ends.
#define XSLT_RVT_LOCAL ((void *)1)
* RVT is part of results returned with func:result. The RVT won't be
* destroyed after exiting a template and will be reset to XSLT_RVT_LOCAL or
* XSLT_RVT_VARIABLE in the template that receives the return value.
#define XSLT_RVT_FUNC_RESULT ((void *)2)
* RVT is part of a global variable.
#define XSLT_RVT_GLOBAL ((void *)3)
* Interfaces for the variable module.
xsltEvalGlobalVariables (xsltTransformContextPtr ctxt);
xsltEvalUserParams (xsltTransformContextPtr ctxt,
xsltQuoteUserParams (xsltTransformContextPtr ctxt,
xsltEvalOneUserParam (xsltTransformContextPtr ctxt,
xsltQuoteOneUserParam (xsltTransformContextPtr ctxt,
xsltParseGlobalVariable (xsltStylesheetPtr style,
xsltParseGlobalParam (xsltStylesheetPtr style,
xsltParseStylesheetVariable (xsltTransformContextPtr ctxt,
xsltParseStylesheetParam (xsltTransformContextPtr ctxt,
XSLTPUBFUN xsltStackElemPtr XSLTCALL
xsltParseStylesheetCallerParam (xsltTransformContextPtr ctxt,
xsltAddStackElemList (xsltTransformContextPtr ctxt,
xsltFreeGlobalVariables (xsltTransformContextPtr ctxt);
XSLTPUBFUN xmlXPathObjectPtr XSLTCALL
xsltVariableLookup (xsltTransformContextPtr ctxt,
XSLTPUBFUN xmlXPathObjectPtr XSLTCALL
xsltXPathVariableLookup (void *ctxt,
#endif /* __XML_XSLT_VARIABLES_H__ */