Path: blob/master/venv/Lib/site-packages/lxml/includes/libxslt/templates.h
811 views
/*1* Summary: interface for the template processing2* Description: This set of routine encapsulates XPath calls3* and Attribute Value Templates evaluation.4*5* Copy: See Copyright for the status of this software.6*7* Author: Daniel Veillard8*/910#ifndef __XML_XSLT_TEMPLATES_H__11#define __XML_XSLT_TEMPLATES_H__1213#include <libxml/xpath.h>14#include <libxml/xpathInternals.h>15#include "xsltexports.h"16#include "xsltInternals.h"1718#ifdef __cplusplus19extern "C" {20#endif2122XSLTPUBFUN int XSLTCALL23xsltEvalXPathPredicate (xsltTransformContextPtr ctxt,24xmlXPathCompExprPtr comp,25xmlNsPtr *nsList,26int nsNr);27XSLTPUBFUN xmlChar * XSLTCALL28xsltEvalTemplateString (xsltTransformContextPtr ctxt,29xmlNodePtr contextNode,30xmlNodePtr inst);31XSLTPUBFUN xmlChar * XSLTCALL32xsltEvalAttrValueTemplate (xsltTransformContextPtr ctxt,33xmlNodePtr node,34const xmlChar *name,35const xmlChar *ns);36XSLTPUBFUN const xmlChar * XSLTCALL37xsltEvalStaticAttrValueTemplate (xsltStylesheetPtr style,38xmlNodePtr node,39const xmlChar *name,40const xmlChar *ns,41int *found);4243/* TODO: this is obviously broken ... the namespaces should be passed too ! */44XSLTPUBFUN xmlChar * XSLTCALL45xsltEvalXPathString (xsltTransformContextPtr ctxt,46xmlXPathCompExprPtr comp);47XSLTPUBFUN xmlChar * XSLTCALL48xsltEvalXPathStringNs (xsltTransformContextPtr ctxt,49xmlXPathCompExprPtr comp,50int nsNr,51xmlNsPtr *nsList);5253XSLTPUBFUN xmlNodePtr * XSLTCALL54xsltTemplateProcess (xsltTransformContextPtr ctxt,55xmlNodePtr node);56XSLTPUBFUN xmlAttrPtr XSLTCALL57xsltAttrListTemplateProcess (xsltTransformContextPtr ctxt,58xmlNodePtr target,59xmlAttrPtr cur);60XSLTPUBFUN xmlAttrPtr XSLTCALL61xsltAttrTemplateProcess (xsltTransformContextPtr ctxt,62xmlNodePtr target,63xmlAttrPtr attr);64XSLTPUBFUN xmlChar * XSLTCALL65xsltAttrTemplateValueProcess (xsltTransformContextPtr ctxt,66const xmlChar* attr);67XSLTPUBFUN xmlChar * XSLTCALL68xsltAttrTemplateValueProcessNode(xsltTransformContextPtr ctxt,69const xmlChar* str,70xmlNodePtr node);71#ifdef __cplusplus72}73#endif7475#endif /* __XML_XSLT_TEMPLATES_H__ */76777879