Eneboo - Documentación para desarrolladores
Funciones
Referencia del Archivo src/libxslt/libxslt/templates.h
#include <libxml/xpath.h>
#include <libxml/xpathInternals.h>
#include "xsltexports.h"
#include "xsltInternals.h"

Ir al código fuente de este archivo.

Funciones

XSLTPUBFUN int XSLTCALL xsltEvalXPathPredicate (xsltTransformContextPtr ctxt, xmlXPathCompExprPtr comp, xmlNsPtr *nsList, int nsNr)
XSLTPUBFUN xmlChar *XSLTCALL xsltEvalTemplateString (xsltTransformContextPtr ctxt, xmlNodePtr contextNode, xmlNodePtr inst)
XSLTPUBFUN xmlChar *XSLTCALL xsltEvalAttrValueTemplate (xsltTransformContextPtr ctxt, xmlNodePtr node, const xmlChar *name, const xmlChar *ns)
XSLTPUBFUN const xmlChar *XSLTCALL xsltEvalStaticAttrValueTemplate (xsltStylesheetPtr style, xmlNodePtr node, const xmlChar *name, const xmlChar *ns, int *found)
XSLTPUBFUN xmlChar *XSLTCALL xsltEvalXPathString (xsltTransformContextPtr ctxt, xmlXPathCompExprPtr comp)
XSLTPUBFUN xmlChar *XSLTCALL xsltEvalXPathStringNs (xsltTransformContextPtr ctxt, xmlXPathCompExprPtr comp, int nsNr, xmlNsPtr *nsList)
XSLTPUBFUN xmlNodePtr *XSLTCALL xsltTemplateProcess (xsltTransformContextPtr ctxt, xmlNodePtr node)
XSLTPUBFUN xmlAttrPtr XSLTCALL xsltAttrListTemplateProcess (xsltTransformContextPtr ctxt, xmlNodePtr target, xmlAttrPtr cur)
XSLTPUBFUN xmlAttrPtr XSLTCALL xsltAttrTemplateProcess (xsltTransformContextPtr ctxt, xmlNodePtr target, xmlAttrPtr attr)
XSLTPUBFUN xmlChar *XSLTCALL xsltAttrTemplateValueProcess (xsltTransformContextPtr ctxt, const xmlChar *attr)
XSLTPUBFUN xmlChar *XSLTCALL xsltAttrTemplateValueProcessNode (xsltTransformContextPtr ctxt, const xmlChar *str, xmlNodePtr node)

Documentación de las funciones

XSLTPUBFUN xmlAttrPtr XSLTCALL xsltAttrListTemplateProcess ( xsltTransformContextPtr  ctxt,
xmlNodePtr  target,
xmlAttrPtr  attrs 
)

xsltAttrListTemplateProcess: : the XSLT transformation context : the element where the attributes will be grafted : the first attribute

Processes all attributes of a Literal Result Element. Attribute references are applied via xsl:use-attribute-set attributes. Copies all non XSLT-attributes over to the element and evaluates Attribute Value Templates.

Called by xsltApplySequenceConstructor() (transform.c).

Returns a new list of attribute nodes, or NULL in case of error. (Don't assign the result to ->properties; if the result is NULL, you'll get memory leaks, since the attributes will be disattached.)

XSLTPUBFUN xmlAttrPtr XSLTCALL xsltAttrTemplateProcess ( xsltTransformContextPtr  ctxt,
xmlNodePtr  target,
xmlAttrPtr  attr 
)

xsltAttrTemplateProcess: : the XSLT transformation context : the element where the attribute will be grafted : the attribute node of a literal result element

Process one attribute of a Literal Result Element (in the stylesheet). Evaluates Attribute Value Templates and copies the attribute over to the result element. This does *not* process attribute sets (xsl:use-attribute-set).

Returns the generated attribute node.

XSLTPUBFUN xmlChar* XSLTCALL xsltAttrTemplateValueProcess ( xsltTransformContextPtr  ctxt,
const xmlChar str 
)

xsltAttrTemplateValueProcess: : the XSLT transformation context : the attribute template node value

Process the given node and return the new string value.

Returns the computed string value or NULL, must be deallocated by the caller.

XSLTPUBFUN xmlChar* XSLTCALL xsltAttrTemplateValueProcessNode ( xsltTransformContextPtr  ctxt,
const xmlChar str,
xmlNodePtr  inst 
)

xsltAttrTemplateValueProcessNode: : the XSLT transformation context : the attribute template node value : the instruction (or LRE) in the stylesheet holding the attribute with an AVT

Process the given string, allowing to pass a namespace mapping context and return the new string value.

Called by:

QUESTION: Why is this function public? It is not used outside of templates.c.

Returns the computed string value or NULL, must be deallocated by the caller.

XSLTPUBFUN xmlChar* XSLTCALL xsltEvalAttrValueTemplate ( xsltTransformContextPtr  ctxt,
xmlNodePtr  node,
const xmlChar name,
const xmlChar ns 
)
XSLTPUBFUN const xmlChar* XSLTCALL xsltEvalStaticAttrValueTemplate ( xsltStylesheetPtr  style,
xmlNodePtr  node,
const xmlChar name,
const xmlChar ns,
int found 
)
XSLTPUBFUN xmlChar* XSLTCALL xsltEvalTemplateString ( xsltTransformContextPtr  ctxt,
xmlNodePtr  contextNode,
xmlNodePtr  inst 
)

xsltEvalTemplateString: : the XSLT transformation context : the current node in the source tree : the XSLT instruction (xsl:comment, xsl:processing-instruction)

Processes the sequence constructor of the given instruction on and converts the resulting tree to a string. This is needed by e.g. xsl:comment and xsl:processing-instruction.

Returns the computed string value or NULL; it's up to the caller to free the result.

XSLTPUBFUN int XSLTCALL xsltEvalXPathPredicate ( xsltTransformContextPtr  ctxt,
xmlXPathCompExprPtr  comp,
xmlNsPtr nsList,
int  nsNr 
)

xsltEvalXPathPredicate: : the XSLT transformation context : the XPath compiled expression : the namespaces in scope : the number of namespaces in scope

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

Returns 1 is the predicate was true, 0 otherwise

XSLTPUBFUN xmlChar* XSLTCALL xsltEvalXPathString ( xsltTransformContextPtr  ctxt,
xmlXPathCompExprPtr  comp 
)

xsltEvalXPathString: : the XSLT transformation context : the compiled XPath expression

Process the expression using XPath and get a string

Returns the computed string value or NULL, must be deallocated by the caller.

XSLTPUBFUN xmlChar* XSLTCALL xsltEvalXPathStringNs ( xsltTransformContextPtr  ctxt,
xmlXPathCompExprPtr  comp,
int  nsNr,
xmlNsPtr nsList 
)

xsltEvalXPathStringNs: : the XSLT transformation context : the compiled XPath expression : the number of namespaces in the list : the list of in-scope namespaces to use

Process the expression using XPath, allowing to pass a namespace mapping context and get a string

Returns the computed string value or NULL, must be deallocated by the caller.

XSLTPUBFUN xmlNodePtr* XSLTCALL xsltTemplateProcess ( xsltTransformContextPtr ctxt  ATTRIBUTE_UNUSED,
xmlNodePtr  node 
)

xsltTemplateProcess: : the XSLT transformation context : the attribute template node

Obsolete. Don't use it.

Returns NULL.

 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'