http://swpat.ffii.org/
Action against software patents
http://www.gnome.org/
Gnome2 Logo
http://www.w3.org/Status
W3C logo
http://www.redhat.com
Red Hat Logo
http://xmlsoft.org/XSLT/
Made with Libxslt Logo
The XSLT C library for Gnome
Module variables from libxslt
API Menu
../index.html
Main Menu
../docs.html
Developer Menu
index.html
API Menu
../ChangeLog.html
ChangeLog
Related links
http://mail.gnome.org/archives/xslt/
Mail archive
http://xmlsoft.org/
XML libxml2
ftp://xmlsoft.org/
FTP
http://www.zlatkovic.com/projects/libxml/
Windows binaries
http://garypennington.net/libxml2/
Solaris binaries
http://www.zveno.com/open_source/libxml2xslt.html
MacOsX binaries
http://bugzilla.gnome.org/buglist.cgi?product=libxslt
Bug Tracker
http://www.zend.com/php5/articles/php5-xmlphp.php#Heading17
XSLT with PHP
http://www.mod-xslt2.com/
Apache module
http://sourceforge.net/projects/libxml2-pas/
Pascal bindings
http://xsldbg.sourceforge.net/
Xsldbg Debugger
API Indexes
../APIchunk0.html
Alphabetic
../APIconstructors.html
Constructors
../APIfunctions.html
Functions/Types
../APIfiles.html
Modules
../APIsymbols.html
Symbols
libxslt-transform.html
Prev
libxslt-transform.html
transform
index.html
Up
index.html
API documentation
../index.html
Home
../index.html
Home
libxslt-xslt.html
xslt
libxslt-xslt.html
Next
interface for the variable matching and lookup.
Table of Contents
#define
#XSLT_REGISTER_VARIABLE_LOOKUP
XSLT_REGISTER_VARIABLE_LOOKUP
int
#xsltAddStackElemList
xsltAddStackElemList
(
libxslt-xsltInternals.html#xsltTransformContextPtr
xsltTransformContextPtr
ctxt,
libxslt-xsltInternals.html#xsltStackElemPtr
xsltStackElemPtr
elems)
int
#xsltEvalGlobalVariables
xsltEvalGlobalVariables
(
libxslt-xsltInternals.html#xsltTransformContextPtr
xsltTransformContextPtr
ctxt)
int
#xsltEvalOneUserParam
xsltEvalOneUserParam
(
libxslt-xsltInternals.html#xsltTransformContextPtr
xsltTransformContextPtr
ctxt,
const xmlChar * name,
const xmlChar * value)
int
#xsltEvalUserParams
xsltEvalUserParams
(
libxslt-xsltInternals.html#xsltTransformContextPtr
xsltTransformContextPtr
ctxt,
const char ** params)
void
#xsltFreeGlobalVariables
xsltFreeGlobalVariables
(
libxslt-xsltInternals.html#xsltTransformContextPtr
xsltTransformContextPtr
ctxt)
void
#xsltParseGlobalParam
xsltParseGlobalParam
(
libxslt-xsltInternals.html#xsltStylesheetPtr
xsltStylesheetPtr
style,
xmlNodePtr cur)
void
#xsltParseGlobalVariable
xsltParseGlobalVariable
(
libxslt-xsltInternals.html#xsltStylesheetPtr
xsltStylesheetPtr
style,
xmlNodePtr cur)
libxslt-xsltInternals.html#xsltStackElemPtr
xsltStackElemPtr
#xsltParseStylesheetCallerParam
xsltParseStylesheetCallerParam
(
libxslt-xsltInternals.html#xsltTransformContextPtr
xsltTransformContextPtr
ctxt,
xmlNodePtr cur)
void
#xsltParseStylesheetParam
xsltParseStylesheetParam
(
libxslt-xsltInternals.html#xsltTransformContextPtr
xsltTransformContextPtr
ctxt,
xmlNodePtr cur)
void
#xsltParseStylesheetVariable
xsltParseStylesheetVariable
(
libxslt-xsltInternals.html#xsltTransformContextPtr
xsltTransformContextPtr
ctxt,
xmlNodePtr cur)
int
#xsltQuoteOneUserParam
xsltQuoteOneUserParam
(
libxslt-xsltInternals.html#xsltTransformContextPtr
xsltTransformContextPtr
ctxt,
const xmlChar * name,
const xmlChar * value)
int
#xsltQuoteUserParams
xsltQuoteUserParams
(
libxslt-xsltInternals.html#xsltTransformContextPtr
xsltTransformContextPtr
ctxt,
const char ** params)
xmlXPathObjectPtr
#xsltVariableLookup
xsltVariableLookup
(
libxslt-xsltInternals.html#xsltTransformContextPtr
xsltTransformContextPtr
ctxt,
const xmlChar * name,
const xmlChar * ns_uri)
xmlXPathObjectPtr
#xsltXPathVariableLookup
xsltXPathVariableLookup
(void * ctxt,
const xmlChar * name,
const xmlChar * ns_uri)
Description
Macro: XSLT_REGISTER_VARIABLE_LOOKUP
#define XSLT_REGISTER_VARIABLE_LOOKUP
Registering macro, not general purpose at all but used in different modules.
Function: xsltAddStackElemList
int	xsltAddStackElemList		(
libxslt-xsltInternals.html#xsltTransformContextPtr
xsltTransformContextPtr
ctxt,
libxslt-xsltInternals.html#xsltStackElemPtr
xsltStackElemPtr
elems)
add the new element list at this level of the stack.
ctxt
:
xn XSLT transformation context
elems
:
a stack element list
Returns
:
0 in case of success, -1 in case of failure.
Function: xsltEvalGlobalVariables
int	xsltEvalGlobalVariables		(
libxslt-xsltInternals.html#xsltTransformContextPtr
xsltTransformContextPtr
ctxt)
Evaluate the global variables of a stylesheet. This need to be done on parsed stylesheets before starting to apply transformations
ctxt
:
the XSLT transformation context
Returns
:
0 in case of success, -1 in case of error
Function: xsltEvalOneUserParam
int	xsltEvalOneUserParam		(
libxslt-xsltInternals.html#xsltTransformContextPtr
xsltTransformContextPtr
ctxt,
const xmlChar * name,
const xmlChar * value)
This is normally called from
libxslt-variables.html#xsltEvalUserParams
xsltEvalUserParams
to process a single parameter from a list of parameters. The @value is evaluated as an XPath expression and the result is stored in the context's global variable/parameter hash table. To have a parameter treated literally (not as an XPath expression) use
libxslt-variables.html#xsltQuoteUserParams
xsltQuoteUserParams
(or xsltQuoteOneUserParam). For more details see description of xsltProcessOneUserParamInternal.
ctxt
:
the XSLT transformation context
name
:
a null terminated string giving the name of the parameter
value
:
a null terminated string giving the XPath expression to be evaluated
Returns
:
0 in case of success, -1 in case of error.
Function: xsltEvalUserParams
int	xsltEvalUserParams		(
libxslt-xsltInternals.html#xsltTransformContextPtr
xsltTransformContextPtr
ctxt,
const char ** params)
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.
ctxt
:
the XSLT transformation context
params
:
a NULL terminated array of parameters name/value tuples
Returns
:
0 in case of success, -1 in case of error
Function: xsltFreeGlobalVariables
void	xsltFreeGlobalVariables		(
libxslt-xsltInternals.html#xsltTransformContextPtr
xsltTransformContextPtr
ctxt)
Free up the data associated to the global variables its value.
ctxt
:
the XSLT transformation context
Function: xsltParseGlobalParam
void	xsltParseGlobalParam		(
libxslt-xsltInternals.html#xsltStylesheetPtr
xsltStylesheetPtr
style,
xmlNodePtr cur)
parse an XSLT transformation param declaration and record its value.
style
:
the XSLT stylesheet
cur
:
the "param" element
Function: xsltParseGlobalVariable
void	xsltParseGlobalVariable		(
libxslt-xsltInternals.html#xsltStylesheetPtr
xsltStylesheetPtr
style,
xmlNodePtr cur)
parse an XSLT transformation variable declaration and record its value.
style
:
the XSLT stylesheet
cur
:
the "variable" element
Function: xsltParseStylesheetCallerParam
libxslt-xsltInternals.html#xsltStackElemPtr
xsltStackElemPtr
xsltParseStylesheetCallerParam	(
libxslt-xsltInternals.html#xsltTransformContextPtr
xsltTransformContextPtr
ctxt,
xmlNodePtr cur)
parse an XSLT transformation param declaration, compute its value but doesn't record it.
ctxt
:
the XSLT transformation context
cur
:
the "param" element
Returns
:
the new
libxslt-xsltInternals.html#xsltStackElemPtr
xsltStackElemPtr
or NULL
Function: xsltParseStylesheetParam
void	xsltParseStylesheetParam	(
libxslt-xsltInternals.html#xsltTransformContextPtr
xsltTransformContextPtr
ctxt,
xmlNodePtr cur)
parse an XSLT transformation param declaration and record its value.
ctxt
:
the XSLT transformation context
cur
:
the "param" element
Function: xsltParseStylesheetVariable
void	xsltParseStylesheetVariable	(
libxslt-xsltInternals.html#xsltTransformContextPtr
xsltTransformContextPtr
ctxt,
xmlNodePtr cur)
parse an XSLT transformation variable declaration and record its value.
ctxt
:
the XSLT transformation context
cur
:
the "variable" element
Function: xsltQuoteOneUserParam
int	xsltQuoteOneUserParam		(
libxslt-xsltInternals.html#xsltTransformContextPtr
xsltTransformContextPtr
ctxt,
const xmlChar * name,
const xmlChar * value)
This is normally called from
libxslt-variables.html#xsltQuoteUserParams
xsltQuoteUserParams
to process a single parameter from a list of parameters. The @value is stored in the context's global variable/parameter hash table.
ctxt
:
the XSLT transformation context
name
:
a null terminated string giving the name of the parameter
value
:
a null terminated string giving the parameter value
Returns
:
0 in case of success, -1 in case of error.
Function: xsltQuoteUserParams
int	xsltQuoteUserParams		(
libxslt-xsltInternals.html#xsltTransformContextPtr
xsltTransformContextPtr
ctxt,
const char ** params)
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.
ctxt
:
the XSLT transformation context
params
:
a NULL terminated arry of parameters names/values tuples
Returns
:
0 in case of success, -1 in case of error.
Function: xsltVariableLookup
xmlXPathObjectPtr	xsltVariableLookup	(
libxslt-xsltInternals.html#xsltTransformContextPtr
xsltTransformContextPtr
ctxt,
const xmlChar * name,
const xmlChar * ns_uri)
Search in the Variable array of the context for the given variable value.
ctxt
:
the XSLT transformation context
name
:
the variable name
ns_uri
:
the variable namespace URI
Returns
:
the value or NULL if not found
Function: xsltXPathVariableLookup
xmlXPathObjectPtr	xsltXPathVariableLookup	(void * ctxt,
const xmlChar * name,
const xmlChar * ns_uri)
This is the entry point when a varibale is needed by the XPath interpretor.
ctxt
:
a void * but the the XSLT transformation context actually
name
:
the variable name
ns_uri
:
the variable namespace URI
Returns
:
the value or NULL if not found
../bugs.html
Daniel Veillard
