2009-01-21 12:09:32 +00:00
|
|
|
/*
|
|
|
|
* 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 "xsltexports.h"
|
|
|
|
#include "xsltInternals.h"
|
|
|
|
#include "functions.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Interfaces for the variable module.
|
|
|
|
*/
|
|
|
|
|
2013-02-09 11:40:29 +00:00
|
|
|
XSLTPUBFUN int XSLTCALL
|
2009-01-21 12:09:32 +00:00
|
|
|
xsltEvalGlobalVariables (xsltTransformContextPtr ctxt);
|
2013-02-09 11:40:29 +00:00
|
|
|
XSLTPUBFUN int XSLTCALL
|
2009-01-21 12:09:32 +00:00
|
|
|
xsltEvalUserParams (xsltTransformContextPtr ctxt,
|
|
|
|
const char **params);
|
2013-02-09 11:40:29 +00:00
|
|
|
XSLTPUBFUN int XSLTCALL
|
|
|
|
xsltQuoteUserParams (xsltTransformContextPtr ctxt,
|
2009-01-21 12:09:32 +00:00
|
|
|
const char **params);
|
2013-02-09 11:40:29 +00:00
|
|
|
XSLTPUBFUN int XSLTCALL
|
2009-01-21 12:09:32 +00:00
|
|
|
xsltEvalOneUserParam (xsltTransformContextPtr ctxt,
|
2013-02-09 11:40:29 +00:00
|
|
|
const xmlChar * name,
|
2009-01-21 12:09:32 +00:00
|
|
|
const xmlChar * value);
|
2013-02-09 11:40:29 +00:00
|
|
|
XSLTPUBFUN int XSLTCALL
|
|
|
|
xsltQuoteOneUserParam (xsltTransformContextPtr ctxt,
|
|
|
|
const xmlChar * name,
|
2009-01-21 12:09:32 +00:00
|
|
|
const xmlChar * value);
|
|
|
|
|
2013-02-09 11:40:29 +00:00
|
|
|
XSLTPUBFUN void XSLTCALL
|
|
|
|
xsltParseGlobalVariable (xsltStylesheetPtr style,
|
2009-01-21 12:09:32 +00:00
|
|
|
xmlNodePtr cur);
|
2013-02-09 11:40:29 +00:00
|
|
|
XSLTPUBFUN void XSLTCALL
|
|
|
|
xsltParseGlobalParam (xsltStylesheetPtr style,
|
2009-01-21 12:09:32 +00:00
|
|
|
xmlNodePtr cur);
|
2013-02-09 11:40:29 +00:00
|
|
|
XSLTPUBFUN void XSLTCALL
|
|
|
|
xsltParseStylesheetVariable (xsltTransformContextPtr ctxt,
|
2009-01-21 12:09:32 +00:00
|
|
|
xmlNodePtr cur);
|
2013-02-09 11:40:29 +00:00
|
|
|
XSLTPUBFUN void XSLTCALL
|
|
|
|
xsltParseStylesheetParam (xsltTransformContextPtr ctxt,
|
2009-01-21 12:09:32 +00:00
|
|
|
xmlNodePtr cur);
|
2013-02-09 11:40:29 +00:00
|
|
|
XSLTPUBFUN xsltStackElemPtr XSLTCALL
|
2009-01-21 12:09:32 +00:00
|
|
|
xsltParseStylesheetCallerParam (xsltTransformContextPtr ctxt,
|
|
|
|
xmlNodePtr cur);
|
2013-02-09 11:40:29 +00:00
|
|
|
XSLTPUBFUN int XSLTCALL
|
|
|
|
xsltAddStackElemList (xsltTransformContextPtr ctxt,
|
2009-01-21 12:09:32 +00:00
|
|
|
xsltStackElemPtr elems);
|
2013-02-09 11:40:29 +00:00
|
|
|
XSLTPUBFUN void XSLTCALL
|
|
|
|
xsltFreeGlobalVariables (xsltTransformContextPtr ctxt);
|
|
|
|
XSLTPUBFUN xmlXPathObjectPtr XSLTCALL
|
2009-01-21 12:09:32 +00:00
|
|
|
xsltVariableLookup (xsltTransformContextPtr ctxt,
|
|
|
|
const xmlChar *name,
|
|
|
|
const xmlChar *ns_uri);
|
2013-02-09 11:40:29 +00:00
|
|
|
XSLTPUBFUN xmlXPathObjectPtr XSLTCALL
|
2009-01-21 12:09:32 +00:00
|
|
|
xsltXPathVariableLookup (void *ctxt,
|
|
|
|
const xmlChar *name,
|
|
|
|
const xmlChar *ns_uri);
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* __XML_XSLT_VARIABLES_H__ */
|
|
|
|
|