Action against software patentsGnome2 LogoW3C logoRed Hat Logo
Made with Libxslt Logo

The XSLT C library for Gnome

Module keys from libxslt

API Menu
Related links
API Indexes

implementation of the key mechanims.

Table of Contents

#define NODE_IS_KEYED
int	xsltAddKey			(xsltStylesheetPtr style, 
const xmlChar * name,
const xmlChar * nameURI,
const xmlChar * match,
const xmlChar * use,
xmlNodePtr inst)
void	xsltFreeDocumentKeys		(xsltDocumentPtr doc)
void	xsltFreeKeys			(xsltStylesheetPtr style)
xmlNodeSetPtr	xsltGetKey		(xsltTransformContextPtr ctxt, 
const xmlChar * name,
const xmlChar * nameURI,
const xmlChar * value)
void	xsltInitCtxtKeys		(xsltTransformContextPtr ctxt, 
xsltDocumentPtr doc)

Description

Macro: NODE_IS_KEYED

#define NODE_IS_KEYED

Function: xsltAddKey

int	xsltAddKey			(xsltStylesheetPtr style, 
const xmlChar * name,
const xmlChar * nameURI,
const xmlChar * match,
const xmlChar * use,
xmlNodePtr inst)

add a key definition to a stylesheet

style:an XSLT stylesheet
name:the key name or NULL
nameURI:the name URI or NULL
match:the match value
use:the use value
inst:the key instruction
Returns:0 in case of success, and -1 in case of failure.

Function: xsltFreeDocumentKeys

void	xsltFreeDocumentKeys		(xsltDocumentPtr doc)

Free the keys associated to a document

doc:a XSLT document

Function: xsltFreeKeys

void	xsltFreeKeys			(xsltStylesheetPtr style)

Free up the memory used by XSLT keys in a stylesheet

style:an XSLT stylesheet

Function: xsltGetKey

xmlNodeSetPtr	xsltGetKey		(xsltTransformContextPtr ctxt, 
const xmlChar * name,
const xmlChar * nameURI,
const xmlChar * value)

Lookup a key

ctxt:an XSLT transformation context
name:the key name or NULL
nameURI:the name URI or NULL
value:the key value to look for
Returns:the nodeset resulting from the query or NULL

Function: xsltInitCtxtKeys

void	xsltInitCtxtKeys		(xsltTransformContextPtr ctxt, 
xsltDocumentPtr doc)

Computes all the keys tables for the current input document. Should be done before global varibales are initialized.

ctxt:an XSLT transformation context
doc:an XSLT document

Daniel Veillard