templates

Name

templates -- 

Synopsis



int         xsltEvalXPathPredicate          (xsltTransformContextPtr ctxt,
                                             xmlXPathCompExprPtr comp,
                                             xmlNsPtr *nsList,
                                             int nsNr);
xmlChar*    xsltEvalTemplateString          (xsltTransformContextPtr ctxt,
                                             xmlNodePtr node,
                                             xmlNodePtr parent);
xmlChar*    xsltEvalAttrValueTemplate       (xsltTransformContextPtr ctxt,
                                             xmlNodePtr node,
                                             const xmlChar *name,
                                             const xmlChar *ns);
xmlChar*    xsltEvalStaticAttrValueTemplate (xsltStylesheetPtr style,
                                             xmlNodePtr node,
                                             const xmlChar *name,
                                             const xmlChar *ns,
                                             int *found);
xmlChar*    xsltEvalXPathString             (xsltTransformContextPtr ctxt,
                                             xmlXPathCompExprPtr comp);
xmlNodePtr* xsltTemplateProcess             (xsltTransformContextPtr ctxt,
                                             xmlNodePtr node);
xmlAttrPtr  xsltAttrListTemplateProcess     (xsltTransformContextPtr ctxt,
                                             xmlNodePtr target,
                                             xmlAttrPtr cur);
xmlAttrPtr  xsltAttrTemplateProcess         (xsltTransformContextPtr ctxt,
                                             xmlNodePtr target,
                                             xmlAttrPtr attr);
xmlChar*    xsltAttrTemplateValueProcess    (xsltTransformContextPtr ctxt,
                                             const xmlChar *attr);

Description

Details

xsltEvalXPathPredicate ()

int         xsltEvalXPathPredicate          (xsltTransformContextPtr ctxt,
                                             xmlXPathCompExprPtr comp,
                                             xmlNsPtr *nsList,
                                             int nsNr);

Process the expression using XPath and evaluate the result as an XPath predicate


xsltEvalTemplateString ()

xmlChar*    xsltEvalTemplateString          (xsltTransformContextPtr ctxt,
                                             xmlNodePtr node,
                                             xmlNodePtr parent);

Evaluate a template string value, i.e. the parent list is interpreter as template content and the resulting tree string value is returned This is needed for example by xsl:comment and xsl:processing-instruction


xsltEvalAttrValueTemplate ()

xmlChar*    xsltEvalAttrValueTemplate       (xsltTransformContextPtr ctxt,
                                             xmlNodePtr node,
                                             const xmlChar *name,
                                             const xmlChar *ns);

Evaluate a attribute value template, i.e. the attribute value can contain expressions contained in curly braces ({}) and those are substituted by they computed value.


xsltEvalStaticAttrValueTemplate ()

xmlChar*    xsltEvalStaticAttrValueTemplate (xsltStylesheetPtr style,
                                             xmlNodePtr node,
                                             const xmlChar *name,
                                             const xmlChar *ns,
                                             int *found);

Check if an attribute value template has a static value, i.e. the attribute value does not contain expressions contained in curly braces ({})


xsltEvalXPathString ()

xmlChar*    xsltEvalXPathString             (xsltTransformContextPtr ctxt,
                                             xmlXPathCompExprPtr comp);

Process the expression using XPath and get a string


xsltTemplateProcess ()

xmlNodePtr* xsltTemplateProcess             (xsltTransformContextPtr ctxt,
                                             xmlNodePtr node);

Process the given node and return the new string value.


xsltAttrListTemplateProcess ()

xmlAttrPtr  xsltAttrListTemplateProcess     (xsltTransformContextPtr ctxt,
                                             xmlNodePtr target,
                                             xmlAttrPtr cur);

Do a copy of an attribute list with attribute template processing


xsltAttrTemplateProcess ()

xmlAttrPtr  xsltAttrTemplateProcess         (xsltTransformContextPtr ctxt,
                                             xmlNodePtr target,
                                             xmlAttrPtr attr);

Process the given attribute and return the new processed copy.


xsltAttrTemplateValueProcess ()

xmlChar*    xsltAttrTemplateValueProcess    (xsltTransformContextPtr ctxt,
                                             const xmlChar *attr);

Process the given node and return the new string value.