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 pattern 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-numbersInternals.html
Prev
libxslt-numbersInternals.html
numbersInternals
index.html
Up
index.html
API documentation
../index.html
Home
../index.html
Home
libxslt-preproc.html
preproc
libxslt-preproc.html
Next
the implementation of the lookup of the right template for a given node must be really fast in order to keep decent performances.
Table of Contents
Structure
#xsltCompMatch
xsltCompMatch
struct _xsltCompMatch
The content of this structure is not made public by the API.
Typedef
libxslt-pattern.html#xsltCompMatch
xsltCompMatch
*
xsltCompMatchPtr
int
#xsltAddTemplate
xsltAddTemplate
(
libxslt-xsltInternals.html#xsltStylesheetPtr
xsltStylesheetPtr
style,
libxslt-xsltInternals.html#xsltTemplatePtr
xsltTemplatePtr
cur,
const xmlChar * mode,
const xmlChar * modeURI)
void
#xsltCleanupTemplates
xsltCleanupTemplates
(
libxslt-xsltInternals.html#xsltStylesheetPtr
xsltStylesheetPtr
style)
libxslt-pattern.html#xsltCompMatchPtr
xsltCompMatchPtr
#xsltCompilePattern
xsltCompilePattern
(const xmlChar * pattern,
xmlDocPtr doc,
xmlNodePtr node,
libxslt-xsltInternals.html#xsltStylesheetPtr
xsltStylesheetPtr
style,
libxslt-xsltInternals.html#xsltTransformContextPtr
xsltTransformContextPtr
runtime)
void
#xsltFreeCompMatchList
xsltFreeCompMatchList
(
libxslt-pattern.html#xsltCompMatchPtr
xsltCompMatchPtr
comp)
void
#xsltFreeTemplateHashes
xsltFreeTemplateHashes
(
libxslt-xsltInternals.html#xsltStylesheetPtr
xsltStylesheetPtr
style)
libxslt-xsltInternals.html#xsltTemplatePtr
xsltTemplatePtr
#xsltGetTemplate
xsltGetTemplate
(
libxslt-xsltInternals.html#xsltTransformContextPtr
xsltTransformContextPtr
ctxt,
xmlNodePtr node,
libxslt-xsltInternals.html#xsltStylesheetPtr
xsltStylesheetPtr
style)
int
#xsltMatchPattern
xsltMatchPattern
(
libxslt-xsltInternals.html#xsltTransformContextPtr
xsltTransformContextPtr
ctxt,
xmlNodePtr node,
const xmlChar * pattern,
xmlDocPtr ctxtdoc,
xmlNodePtr ctxtnode)
void
#xsltNormalizeCompSteps
xsltNormalizeCompSteps
(void * payload,
void * data,
const xmlChar * name)
int
#xsltTestCompMatchList
xsltTestCompMatchList
(
libxslt-xsltInternals.html#xsltTransformContextPtr
xsltTransformContextPtr
ctxt,
xmlNodePtr node,
libxslt-pattern.html#xsltCompMatchPtr
xsltCompMatchPtr
comp)
Description
Structure xsltCompMatch
Structure xsltCompMatch
struct _xsltCompMatch {
The content of this structure is not made public by the API.
}
Function: xsltAddTemplate
int	xsltAddTemplate			(
libxslt-xsltInternals.html#xsltStylesheetPtr
xsltStylesheetPtr
style,
libxslt-xsltInternals.html#xsltTemplatePtr
xsltTemplatePtr
cur,
const xmlChar * mode,
const xmlChar * modeURI)
Register the XSLT pattern associated to @cur
style
:
an XSLT stylesheet
cur
:
an XSLT template
mode
:
the mode name or NULL
modeURI
:
the mode URI or NULL
Returns
:
-1 in case of error, 0 otherwise
Function: xsltCleanupTemplates
void	xsltCleanupTemplates		(
libxslt-xsltInternals.html#xsltStylesheetPtr
xsltStylesheetPtr
style)
Cleanup the state of the templates used by the stylesheet and the ones it imports.
style
:
an XSLT stylesheet
Function: xsltCompilePattern
libxslt-pattern.html#xsltCompMatchPtr
xsltCompMatchPtr
xsltCompilePattern	(const xmlChar * pattern,
xmlDocPtr doc,
xmlNodePtr node,
libxslt-xsltInternals.html#xsltStylesheetPtr
xsltStylesheetPtr
style,
libxslt-xsltInternals.html#xsltTransformContextPtr
xsltTransformContextPtr
runtime)
Compile the XSLT pattern and generates a list of precompiled form suitable for fast matching. [1] Pattern ::= LocationPathPattern | Pattern '|' LocationPathPattern
pattern
:
an XSLT pattern
doc
:
the containing document
node
:
the containing element
style
:
the stylesheet
runtime
:
the transformation context, if done at run-time
Returns
:
the generated pattern list or NULL in case of failure
Function: xsltFreeCompMatchList
void	xsltFreeCompMatchList		(
libxslt-pattern.html#xsltCompMatchPtr
xsltCompMatchPtr
comp)
Free up the memory allocated by all the elements of @comp
comp
:
an XSLT comp list
Function: xsltFreeTemplateHashes
void	xsltFreeTemplateHashes		(
libxslt-xsltInternals.html#xsltStylesheetPtr
xsltStylesheetPtr
style)
Free up the memory used by xsltAddTemplate/xsltGetTemplate mechanism
style
:
an XSLT stylesheet
Function: xsltGetTemplate
libxslt-xsltInternals.html#xsltTemplatePtr
xsltTemplatePtr
xsltGetTemplate		(
libxslt-xsltInternals.html#xsltTransformContextPtr
xsltTransformContextPtr
ctxt,
xmlNodePtr node,
libxslt-xsltInternals.html#xsltStylesheetPtr
xsltStylesheetPtr
style)
Finds the template applying to this node, if @style is non-NULL it means one needs to look for the next imported template in scope.
ctxt
:
a XSLT process context
node
:
the node being processed
style
:
the current style
Returns
:
the
libxslt-xsltInternals.html#xsltTemplatePtr
xsltTemplatePtr
or NULL if not found
Function: xsltMatchPattern
int	xsltMatchPattern		(
libxslt-xsltInternals.html#xsltTransformContextPtr
xsltTransformContextPtr
ctxt,
xmlNodePtr node,
const xmlChar * pattern,
xmlDocPtr ctxtdoc,
xmlNodePtr ctxtnode)
ctxt
:
node
:
pattern
:
ctxtdoc
:
ctxtnode
:
Returns
:
Function: xsltNormalizeCompSteps
void	xsltNormalizeCompSteps		(void * payload,
void * data,
const xmlChar * name)
This is a hashtable scanner function to normalize the compiled steps of an imported stylesheet.
payload
:
pointer to template hash table entry
data
:
pointer to the stylesheet
name
:
template match name
Function: xsltTestCompMatchList
int	xsltTestCompMatchList		(
libxslt-xsltInternals.html#xsltTransformContextPtr
xsltTransformContextPtr
ctxt,
xmlNodePtr node,
libxslt-pattern.html#xsltCompMatchPtr
xsltCompMatchPtr
comp)
Test whether the node matches one of the patterns in the list
ctxt
:
a XSLT process context
node
:
a node
comp
:
the precompiled pattern list
Returns
:
1 if it matches, 0 if it doesn't and -1 in case of failure
../bugs.html
Daniel Veillard
