pattern

Name

pattern -- 

Synopsis



int         xsltAddTemplate                 (xsltStylesheetPtr style,
                                             xsltTemplatePtr cur,
                                             const xmlChar *mode,
                                             const xmlChar *modeURI);
xsltTemplatePtr xsltGetTemplate             (xsltTransformContextPtr ctxt,
                                             xmlNodePtr node);
void        xsltFreeTemplateHashes          (xsltStylesheetPtr style);

Description

Details

xsltAddTemplate ()

int         xsltAddTemplate                 (xsltStylesheetPtr style,
                                             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


xsltGetTemplate ()

xsltTemplatePtr xsltGetTemplate             (xsltTransformContextPtr ctxt,
                                             xmlNodePtr node);

Finds the template applying to this node

ctxt : a XSLT process context
node : 
Returns :the xsltTemplatePtr or NULL if not found


xsltFreeTemplateHashes ()

void        xsltFreeTemplateHashes          (xsltStylesheetPtr style);

Free up the memory used by xsltAddTemplate/xsltGetTemplate mechanism

style : an XSLT stylesheet