keys

Name

keys -- 

Synopsis



int         xsltAddKey                      (xsltStylesheetPtr style,
                                             const xmlChar *name,
                                             const xmlChar *nameURI,
                                             const xmlChar *match,
                                             const xmlChar *use);
xmlNodeSetPtr xsltGetKey                    (xsltTransformContextPtr ctxt,
                                             const xmlChar *name,
                                             const xmlChar *nameURI,
                                             const xmlChar *value);
void        xsltInitCtxtKeys                (xsltTransformContextPtr ctxt);
void        xsltFreeKeys                    (xsltStylesheetPtr style);
void        xsltFreeCtxtKeys                (xsltTransformContextPtr ctxt);

Description

Details

xsltAddKey ()

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

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
Returns :0 in case of success, and -1 in case of failure.


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


xsltInitCtxtKeys ()

void        xsltInitCtxtKeys                (xsltTransformContextPtr ctxt);

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

ctxt : an XSLT transformation context


xsltFreeKeys ()

void        xsltFreeKeys                    (xsltStylesheetPtr style);

Free up the memory used by XSLT keys in a stylesheet

style : an XSLT stylesheet


xsltFreeCtxtKeys ()

void        xsltFreeCtxtKeys                (xsltTransformContextPtr ctxt);

Free up all the space used by the key tables

ctxt : an XSLT transformation context