Eneboo - Documentación para desarrolladores
|
#include <libxml/xpath.h>
#include <libxml/xpathInternals.h>
#include "xsltexports.h"
#include "xsltInternals.h"
#include "functions.h"
Ir al código fuente de este archivo.
#define XSLT_REGISTER_VARIABLE_LOOKUP | ( | ctxt | ) |
xmlXPathRegisterVariableLookup((ctxt)->xpathCtxt, \ xsltXPathVariableLookup, (void *)(ctxt)); \ xsltRegisterAllFunctions((ctxt)->xpathCtxt); \ xsltRegisterAllElement(ctxt); \ (ctxt)->xpathCtxt->extra = ctxt
XSLT_REGISTER_VARIABLE_LOOKUP:
Registering macro, not general purpose at all but used in different modules.
XSLTPUBFUN int XSLTCALL xsltAddStackElemList | ( | xsltTransformContextPtr | ctxt, |
xsltStackElemPtr | elems | ||
) |
xsltAddStackElemList: : xn XSLT transformation context : a stack element list
Push an element list onto the stack.
Returns 0 in case of success, -1 in case of failure.
XSLTPUBFUN int XSLTCALL xsltEvalGlobalVariables | ( | xsltTransformContextPtr | ctxt | ) |
xsltEvalGlobalVariables: : 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
XSLTPUBFUN int XSLTCALL xsltEvalOneUserParam | ( | xsltTransformContextPtr | ctxt, |
const xmlChar * | name, | ||
const xmlChar * | value | ||
) |
XSLTPUBFUN int XSLTCALL xsltEvalUserParams | ( | xsltTransformContextPtr | ctxt, |
const char ** | params | ||
) |
xsltEvalUserParams:
: the XSLT transformation context : 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
XSLTPUBFUN void XSLTCALL xsltFreeGlobalVariables | ( | xsltTransformContextPtr | ctxt | ) |
xsltFreeGlobalVariables: : the XSLT transformation context
Free up the data associated to the global variables its value.
XSLTPUBFUN void XSLTCALL xsltParseGlobalParam | ( | xsltStylesheetPtr | style, |
xmlNodePtr | cur | ||
) |
xsltParseGlobalParam: : the XSLT stylesheet : the "param" element
parse an XSLT transformation param declaration and record its value.
XSLTPUBFUN void XSLTCALL xsltParseGlobalVariable | ( | xsltStylesheetPtr | style, |
xmlNodePtr | cur | ||
) |
xsltParseGlobalVariable: : the XSLT stylesheet : the "variable" element
Parses a global XSLT 'variable' declaration at compilation time and registers it
XSLTPUBFUN xsltStackElemPtr XSLTCALL xsltParseStylesheetCallerParam | ( | xsltTransformContextPtr | ctxt, |
xmlNodePtr | inst | ||
) |
xsltParseStylesheetCallerParam: : the XSLT transformation context : the xsl:with-param instruction element
Processes an xsl:with-param instruction at transformation time. The value is compute, but not recorded. NOTE that this is also called with an *xsl:param* element from exsltFuncFunctionFunction().
Returns the new xsltStackElemPtr or NULL
XSLTPUBFUN void XSLTCALL xsltParseStylesheetParam | ( | xsltTransformContextPtr | ctxt, |
xmlNodePtr | cur | ||
) |
xsltParseStylesheetParam: : the XSLT transformation context : the XSLT 'param' element
Registers a local XSLT 'param' declaration at transformation time and evaluates its value.
XSLTPUBFUN void XSLTCALL xsltParseStylesheetVariable | ( | xsltTransformContextPtr | ctxt, |
xmlNodePtr | inst | ||
) |
xsltParseStylesheetVariable: : the XSLT transformation context : the xsl:variable instruction element
Registers a local XSLT 'variable' instruction at transformation time and evaluates its value.
XSLTPUBFUN int XSLTCALL xsltQuoteOneUserParam | ( | xsltTransformContextPtr | ctxt, |
const xmlChar * | name, | ||
const xmlChar * | value | ||
) |
XSLTPUBFUN int XSLTCALL xsltQuoteUserParams | ( | xsltTransformContextPtr | ctxt, |
const char ** | params | ||
) |
xsltQuoteUserParams:
: the XSLT transformation context : 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.
XSLTPUBFUN xmlXPathObjectPtr XSLTCALL xsltVariableLookup | ( | xsltTransformContextPtr | ctxt, |
const xmlChar * | name, | ||
const xmlChar * | ns_uri | ||
) |