ReactOS 0.4.15-dev-8636-g945e856
|
#include <libxml/xpath.h>
#include <libxml/xpathInternals.h>
#include "xsltexports.h"
#include "xsltInternals.h"
#include "functions.h"
Go to the source code of this file.
Macros | |
#define | XSLT_REGISTER_VARIABLE_LOOKUP(ctxt) |
#define | XSLT_RVT_LOCAL ((void *)1) |
#define | XSLT_RVT_FUNC_RESULT ((void *)2) |
#define | XSLT_RVT_GLOBAL ((void *)3) |
#define XSLT_REGISTER_VARIABLE_LOOKUP | ( | ctxt | ) |
XSLT_REGISTER_VARIABLE_LOOKUP:
Registering macro, not general purpose at all but used in different modules.
Definition at line 30 of file variables.h.
XSLT_RVT_FUNC_RESULT:
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.
Definition at line 55 of file variables.h.
XSLT_RVT_LOCAL:
RVT is destroyed after the current instructions ends.
Definition at line 46 of file variables.h.
XSLTPUBFUN int XSLTCALL xsltAddStackElemList | ( | xsltTransformContextPtr | ctxt, |
xsltStackElemPtr | elems | ||
) |
xsltAddStackElemList: @ctxt: xn XSLT transformation context @elems: a stack element list
Push an element list onto the stack.
Returns 0 in case of success, -1 in case of failure.
Definition at line 777 of file variables.c.
XSLTPUBFUN int XSLTCALL xsltEvalGlobalVariables | ( | xsltTransformContextPtr | ctxt | ) |
xsltEvalGlobalVariables: @ctxt: the XSLT transformation context
Evaluates all global variables and parameters of a stylesheet. For internal use only. This is called at start of a transformation.
Returns 0 in case of success, -1 in case of error
Definition at line 1260 of file variables.c.
Referenced by xsltApplyStylesheetInternal().
XSLTPUBFUN int XSLTCALL xsltEvalOneUserParam | ( | xsltTransformContextPtr | ctxt, |
const xmlChar * | name, | ||
const xmlChar * | value | ||
) |
Definition at line 1727 of file variables.c.
Referenced by xsltEvalUserParams().
XSLTPUBFUN int XSLTCALL xsltEvalUserParams | ( | xsltTransformContextPtr | ctxt, |
const char ** | params | ||
) |
xsltEvalUserParams:
@ctxt: the XSLT transformation context @params: a NULL terminated array of parameters name/value tuples
Evaluate the global variables of a stylesheet. This needs to be done on parsed stylesheets before starting to apply transformations. Each of the parameters is evaluated as an XPath expression and stored in the global variables/parameter hash table. If you want your parameter used literally, use xsltQuoteUserParams.
Returns 0 in case of success, -1 in case of error
Definition at line 1662 of file variables.c.
Referenced by xsltApplyStylesheetInternal().
XSLTPUBFUN void XSLTCALL xsltFreeGlobalVariables | ( | xsltTransformContextPtr | ctxt | ) |
xsltFreeGlobalVariables: @ctxt: the XSLT transformation context
Free up the data associated to the global variables its value.
Definition at line 2227 of file variables.c.
Referenced by xsltFreeTransformContext().
XSLTPUBFUN void XSLTCALL xsltParseGlobalParam | ( | xsltStylesheetPtr | style, |
xmlNodePtr | cur | ||
) |
xsltParseGlobalParam: @style: the XSLT stylesheet @cur: the "param" element
parse an XSLT transformation param declaration and record its value.
Definition at line 2087 of file variables.c.
Referenced by xsltParseStylesheetTop().
XSLTPUBFUN void XSLTCALL xsltParseGlobalVariable | ( | xsltStylesheetPtr | style, |
xmlNodePtr | cur | ||
) |
xsltParseGlobalVariable: @style: the XSLT stylesheet @cur: the "variable" element
Parses a global XSLT 'variable' declaration at compilation time and registers it
Definition at line 2024 of file variables.c.
Referenced by xsltParseStylesheetTop().
XSLTPUBFUN xsltStackElemPtr XSLTCALL xsltParseStylesheetCallerParam | ( | xsltTransformContextPtr | ctxt, |
xmlNodePtr | inst | ||
) |
xsltParseStylesheetCallerParam: @ctxt: the XSLT transformation context @inst: the xsl:with-param instruction element
Processes an xsl:with-param instruction at transformation time. The value is computed, but not recorded. NOTE that this is also called with an xsl:param element from exsltFuncFunctionFunction().
Returns the new xsltStackElemPtr or NULL
Definition at line 1962 of file variables.c.
Referenced by xsltApplyTemplates(), and xsltCallTemplate().
XSLTPUBFUN void XSLTCALL xsltParseStylesheetParam | ( | xsltTransformContextPtr | ctxt, |
xmlNodePtr | cur | ||
) |
xsltParseStylesheetParam: @ctxt: the XSLT transformation context @cur: the XSLT 'param' element
Registers a local XSLT 'param' declaration at transformation time and evaluates its value.
Definition at line 2191 of file variables.c.
Referenced by xsltApplyXSLTTemplate().
XSLTPUBFUN void XSLTCALL xsltParseStylesheetVariable | ( | xsltTransformContextPtr | ctxt, |
xmlNodePtr | inst | ||
) |
xsltParseStylesheetVariable: @ctxt: the XSLT transformation context @inst: the xsl:variable instruction element
Registers a local XSLT 'variable' instruction at transformation time and evaluates its value.
Definition at line 2149 of file variables.c.
Referenced by xsltApplySequenceConstructor().
XSLTPUBFUN int XSLTCALL xsltQuoteOneUserParam | ( | xsltTransformContextPtr | ctxt, |
const xmlChar * | name, | ||
const xmlChar * | value | ||
) |
Definition at line 1748 of file variables.c.
Referenced by xsltQuoteUserParams().
XSLTPUBFUN int XSLTCALL xsltQuoteUserParams | ( | xsltTransformContextPtr | ctxt, |
const char ** | params | ||
) |
xsltQuoteUserParams:
@ctxt: the XSLT transformation context @params: a NULL terminated arry of parameters names/values tuples
Similar to xsltEvalUserParams, but the values are treated literally and are * not evaluated as XPath expressions. This should be done on parsed stylesheets before starting to apply transformations.
Returns 0 in case of success, -1 in case of error.
Definition at line 1692 of file variables.c.
XSLTPUBFUN xmlXPathObjectPtr XSLTCALL xsltVariableLookup | ( | xsltTransformContextPtr | ctxt, |
const xmlChar * | name, | ||
const xmlChar * | ns_uri | ||
) |
Definition at line 1920 of file variables.c.
XSLTPUBFUN xmlXPathObjectPtr XSLTCALL xsltXPathVariableLookup | ( | void * | ctxt, |
const xmlChar * | name, | ||
const xmlChar * | ns_uri | ||
) |
Definition at line 2243 of file variables.c.