/usr/share/doc/libxslt-devel/html
NameSizeModeActions
book1.html68210644editdlrm
home.png6540644editdlrm
index.html68210644editdlrm
left.png4590644editdlrm
libxslt-attributes.html93560644editdlrm
libxslt-documents.html164470644editdlrm
libxslt-extensions.html496180644editdlrm
libxslt-extra.html101790644editdlrm
libxslt-functions.html140300644editdlrm
libxslt-imports.html128460644editdlrm
libxslt-keys.html112610644editdlrm
libxslt-lib.html68210644editdlrm
libxslt-namespaces.html156210644editdlrm
libxslt-numbersInternals.html77120644editdlrm
libxslt-pattern.html167060644editdlrm
libxslt-preproc.html87310644editdlrm
libxslt-security.html201510644editdlrm
libxslt-templates.html208950644editdlrm
libxslt-transform.html513230644editdlrm
libxslt-variables.html231580644editdlrm
libxslt-xslt.html77900644editdlrm
libxslt-xsltexports.html67350644editdlrm
libxslt-xsltInternals.html1097310644editdlrm
libxslt-xsltlocale.html114310644editdlrm
libxslt-xsltutils.html507800644editdlrm
right.png4720644editdlrm
up.png4060644editdlrm
Edit: /usr/share/doc/libxslt-devel/html/libxslt-keys.html (11261B)
Module keys from libxslt
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 idoc)
void	xsltFreeKeys			(xsltStylesheetPtr style)
xmlNodeSetPtr	xsltGetKey		(xsltTransformContextPtr ctxt, 
const xmlChar * name,
const xmlChar * nameURI,
const xmlChar * value)
void	xsltInitCtxtKeys		(xsltTransformContextPtr ctxt, 
xsltDocumentPtr idoc)

Description

Macro: NODE_IS_KEYED

#define NODE_IS_KEYED

check for bit 15 set

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 idoc)

Free the keys associated to a document

idoc: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)

Looks up a key of the in current source doc (the document info on @ctxt->document). Computes the key if not already done for the current source doc.

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 idoc)

Computes all the keys tables for the current input document. Should be done before global varibales are initialized. NOTE: Not used anymore in the refactored code.

ctxt:an XSLT transformation context
idoc:a document info

Daniel Veillard