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 templates 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-security.html
Prev
libxslt-security.html
security
index.html
Up
index.html
API documentation
../index.html
Home
../index.html
Home
libxslt-transform.html
transform
libxslt-transform.html
Next
This set of routine encapsulates XPath calls and Attribute Value Templates evaluation.
Table of Contents
xmlAttrPtr
#xsltAttrListTemplateProcess
xsltAttrListTemplateProcess
(
libxslt-xsltInternals.html#xsltTransformContextPtr
xsltTransformContextPtr
ctxt,
xmlNodePtr target,
xmlAttrPtr cur)
xmlAttrPtr
#xsltAttrTemplateProcess
xsltAttrTemplateProcess
(
libxslt-xsltInternals.html#xsltTransformContextPtr
xsltTransformContextPtr
ctxt,
xmlNodePtr target,
xmlAttrPtr cur)
xmlChar *
#xsltAttrTemplateValueProcess
xsltAttrTemplateValueProcess
(
libxslt-xsltInternals.html#xsltTransformContextPtr
xsltTransformContextPtr
ctxt,
const xmlChar * str)
xmlChar *
#xsltAttrTemplateValueProcessNode
xsltAttrTemplateValueProcessNode
(
libxslt-xsltInternals.html#xsltTransformContextPtr
xsltTransformContextPtr
ctxt,
const xmlChar * str,
xmlNodePtr node)
xmlChar *
#xsltEvalAttrValueTemplate
xsltEvalAttrValueTemplate
(
libxslt-xsltInternals.html#xsltTransformContextPtr
xsltTransformContextPtr
ctxt,
xmlNodePtr node,
const xmlChar * name,
const xmlChar * ns)
const xmlChar *
#xsltEvalStaticAttrValueTemplate
xsltEvalStaticAttrValueTemplate
(
libxslt-xsltInternals.html#xsltStylesheetPtr
xsltStylesheetPtr
style,
xmlNodePtr node,
const xmlChar * name,
const xmlChar * ns,
int * found)
xmlChar *
#xsltEvalTemplateString
xsltEvalTemplateString
(
libxslt-xsltInternals.html#xsltTransformContextPtr
xsltTransformContextPtr
ctxt,
xmlNodePtr node,
xmlNodePtr parent)
int
#xsltEvalXPathPredicate
xsltEvalXPathPredicate
(
libxslt-xsltInternals.html#xsltTransformContextPtr
xsltTransformContextPtr
ctxt,
xmlXPathCompExprPtr comp,
xmlNsPtr * nsList,
int nsNr)
xmlChar *
#xsltEvalXPathString
xsltEvalXPathString
(
libxslt-xsltInternals.html#xsltTransformContextPtr
xsltTransformContextPtr
ctxt,
xmlXPathCompExprPtr comp)
xmlChar *
#xsltEvalXPathStringNs
xsltEvalXPathStringNs
(
libxslt-xsltInternals.html#xsltTransformContextPtr
xsltTransformContextPtr
ctxt,
xmlXPathCompExprPtr comp,
int nsNr,
xmlNsPtr * nsList)
xmlNodePtr *
#xsltTemplateProcess
xsltTemplateProcess
(
libxslt-xsltInternals.html#xsltTransformContextPtr
xsltTransformContextPtr
ctxt,
xmlNodePtr node)
Description
Function: xsltAttrListTemplateProcess
xmlAttrPtr	xsltAttrListTemplateProcess	(
libxslt-xsltInternals.html#xsltTransformContextPtr
xsltTransformContextPtr
ctxt,
xmlNodePtr target,
xmlAttrPtr cur)
Do a copy of an attribute list with attribute template processing
ctxt
:
the XSLT transformation context
target
:
the element where the attributes will be grafted
cur
:
the first attribute
Returns
:
a new xmlAttrPtr, or NULL in case of error.
Function: xsltAttrTemplateProcess
xmlAttrPtr	xsltAttrTemplateProcess	(
libxslt-xsltInternals.html#xsltTransformContextPtr
xsltTransformContextPtr
ctxt,
xmlNodePtr target,
xmlAttrPtr cur)
Process the given attribute and return the new processed copy.
ctxt
:
the XSLT transformation context
target
:
the result node
cur
:
the attribute template node
Returns
:
the attribute replacement.
Function: xsltAttrTemplateValueProcess
xmlChar *	xsltAttrTemplateValueProcess	(
libxslt-xsltInternals.html#xsltTransformContextPtr
xsltTransformContextPtr
ctxt,
const xmlChar * str)
Process the given node and return the new string value.
ctxt
:
the XSLT transformation context
str
:
the attribute template node value
Returns
:
the computed string value or NULL, must be deallocated by the caller.
Function: xsltAttrTemplateValueProcessNode
xmlChar *	xsltAttrTemplateValueProcessNode	(
libxslt-xsltInternals.html#xsltTransformContextPtr
xsltTransformContextPtr
ctxt,
const xmlChar * str,
xmlNodePtr node)
Process the given string, allowing to pass a namespace mapping context and return the new string value.
ctxt
:
the XSLT transformation context
str
:
the attribute template node value
node
:
the node hosting the attribute
Returns
:
the computed string value or NULL, must be deallocated by the caller.
Function: xsltEvalAttrValueTemplate
xmlChar *	xsltEvalAttrValueTemplate	(
libxslt-xsltInternals.html#xsltTransformContextPtr
xsltTransformContextPtr
ctxt,
xmlNodePtr node,
const xmlChar * name,
const xmlChar * ns)
Evaluate a attribute value template, i.e. the attribute value can contain expressions contained in curly braces ({}) and those are substituted by they computed value.
ctxt
:
the XSLT transformation context
node
:
the stylesheet node
name
:
the attribute QName
ns
:
the attribute namespace URI
Returns
:
the computed string value or NULL, must be deallocated by the caller.
Function: xsltEvalStaticAttrValueTemplate
const xmlChar *	xsltEvalStaticAttrValueTemplate	(
libxslt-xsltInternals.html#xsltStylesheetPtr
xsltStylesheetPtr
style,
xmlNodePtr node,
const xmlChar * name,
const xmlChar * ns,
int * found)
Check if an attribute value template has a static value, i.e. the attribute value does not contain expressions contained in curly braces ({})
style
:
the XSLT stylesheet
node
:
the stylesheet node
name
:
the attribute Name
ns
:
the attribute namespace URI
found
:
indicator whether the attribute is present
Returns
:
the static string value or NULL, must be deallocated by the caller.
Function: xsltEvalTemplateString
xmlChar *	xsltEvalTemplateString	(
libxslt-xsltInternals.html#xsltTransformContextPtr
xsltTransformContextPtr
ctxt,
xmlNodePtr node,
xmlNodePtr parent)
Evaluate a template string value, i.e. the parent list is interpreter as template content and the resulting tree string value is returned This is needed for example by xsl:comment and xsl:processing-instruction
ctxt
:
the XSLT transformation context
node
:
the stylesheet node
parent
:
the content parent
Returns
:
the computed string value or NULL, must be deallocated by the caller.
Function: xsltEvalXPathPredicate
int	xsltEvalXPathPredicate		(
libxslt-xsltInternals.html#xsltTransformContextPtr
xsltTransformContextPtr
ctxt,
xmlXPathCompExprPtr comp,
xmlNsPtr * nsList,
int nsNr)
Process the expression using XPath and evaluate the result as an XPath predicate
ctxt
:
the XSLT transformation context
comp
:
the XPath compiled expression
nsList
:
the namespaces in scope
nsNr
:
the number of namespaces in scope
Returns
:
1 is the predicate was true, 0 otherwise
Function: xsltEvalXPathString
xmlChar *	xsltEvalXPathString	(
libxslt-xsltInternals.html#xsltTransformContextPtr
xsltTransformContextPtr
ctxt,
xmlXPathCompExprPtr comp)
Process the expression using XPath and get a string
ctxt
:
the XSLT transformation context
comp
:
the compiled XPath expression
Returns
:
the computed string value or NULL, must be deallocated by the caller.
Function: xsltEvalXPathStringNs
xmlChar *	xsltEvalXPathStringNs	(
libxslt-xsltInternals.html#xsltTransformContextPtr
xsltTransformContextPtr
ctxt,
xmlXPathCompExprPtr comp,
int nsNr,
xmlNsPtr * nsList)
Process the expression using XPath, allowing to pass a namespace mapping context and get a string
ctxt
:
the XSLT transformation context
comp
:
the compiled XPath expression
nsNr
:
the number of namespaces in the list
nsList
:
the list of in-scope namespaces to use
Returns
:
the computed string value or NULL, must be deallocated by the caller.
Function: xsltTemplateProcess
xmlNodePtr *	xsltTemplateProcess	(
libxslt-xsltInternals.html#xsltTransformContextPtr
xsltTransformContextPtr
ctxt,
xmlNodePtr node)
Process the given node and return the new string value.
ctxt
:
the XSLT transformation context
node
:
the attribute template node
Returns
:
the computed tree replacement
../bugs.html
Daniel Veillard
