Eneboo - Documentación para desarrolladores
'typedefs' | Funciones
Referencia del Archivo src/libxslt/libxslt/pattern.h
#include "xsltInternals.h"
#include "xsltexports.h"

Ir al código fuente de este archivo.

'typedefs'

typedef struct _xsltCompMatch xsltCompMatch
typedef xsltCompMatchxsltCompMatchPtr

Funciones

XSLTPUBFUN xsltCompMatchPtr
XSLTCALL 
xsltCompilePattern (const xmlChar *pattern, xmlDocPtr doc, xmlNodePtr node, xsltStylesheetPtr style, xsltTransformContextPtr runtime)
XSLTPUBFUN void XSLTCALL xsltFreeCompMatchList (xsltCompMatchPtr comp)
XSLTPUBFUN int XSLTCALL xsltTestCompMatchList (xsltTransformContextPtr ctxt, xmlNodePtr node, xsltCompMatchPtr comp)
XSLTPUBFUN void XSLTCALL xsltNormalizeCompSteps (void *payload, void *data, const xmlChar *name)
XSLTPUBFUN int XSLTCALL xsltAddTemplate (xsltStylesheetPtr style, xsltTemplatePtr cur, const xmlChar *mode, const xmlChar *modeURI)
XSLTPUBFUN xsltTemplatePtr XSLTCALL xsltGetTemplate (xsltTransformContextPtr ctxt, xmlNodePtr node, xsltStylesheetPtr style)
XSLTPUBFUN void XSLTCALL xsltFreeTemplateHashes (xsltStylesheetPtr style)
XSLTPUBFUN void XSLTCALL xsltCleanupTemplates (xsltStylesheetPtr style)

Documentación de los 'typedefs'

typedef struct _xsltCompMatch xsltCompMatch

xsltCompMatch:

Data structure used for the implementation of patterns. It is kept private (in pattern.c).


Documentación de las funciones

XSLTPUBFUN int XSLTCALL xsltAddTemplate ( xsltStylesheetPtr  style,
xsltTemplatePtr  cur,
const xmlChar mode,
const xmlChar modeURI 
)

xsltAddTemplate: : an XSLT stylesheet : an XSLT template : the mode name or NULL : the mode URI or NULL

Register the XSLT pattern associated to

Returns -1 in case of error, 0 otherwise

XSLTPUBFUN void XSLTCALL xsltCleanupTemplates ( xsltStylesheetPtr style  ATTRIBUTE_UNUSED)

xsltCleanupTemplates: : an XSLT stylesheet

Cleanup the state of the templates used by the stylesheet and the ones it imports.

XSLTPUBFUN xsltCompMatchPtr XSLTCALL xsltCompilePattern ( const xmlChar pattern,
xmlDocPtr  doc,
xmlNodePtr  node,
xsltStylesheetPtr  style,
xsltTransformContextPtr  runtime 
)

xsltCompilePattern: : an XSLT pattern : the containing document : the containing element : the stylesheet : the transformation context, if done at run-time

Compile the XSLT pattern and generates a list of precompiled form suitable for fast matching.

[1] Pattern ::= LocationPathPattern | Pattern '|' LocationPathPattern

Returns the generated pattern list or NULL in case of failure

XSLTPUBFUN void XSLTCALL xsltFreeCompMatchList ( xsltCompMatchPtr  comp)

xsltFreeCompMatchList: : an XSLT comp list

Free up the memory allocated by all the elements of

XSLTPUBFUN void XSLTCALL xsltFreeTemplateHashes ( xsltStylesheetPtr  style)

xsltFreeTemplateHashes: : an XSLT stylesheet

Free up the memory used by xsltAddTemplate/xsltGetTemplate mechanism

XSLTPUBFUN xsltTemplatePtr XSLTCALL xsltGetTemplate ( xsltTransformContextPtr  ctxt,
xmlNodePtr  node,
xsltStylesheetPtr  style 
)

xsltGetTemplate: : a XSLT process context : the node being processed : the current style

Finds the template applying to this node, if is non-NULL it means one needs to look for the next imported template in scope.

Returns the xsltTemplatePtr or NULL if not found

XSLTPUBFUN void XSLTCALL xsltNormalizeCompSteps ( void *  payload,
void *  data,
const xmlChar name 
)
XSLTPUBFUN int XSLTCALL xsltTestCompMatchList ( xsltTransformContextPtr  ctxt,
xmlNodePtr  node,
xsltCompMatchPtr  comp 
)

xsltTestCompMatchList: : a XSLT process context : a node : the precompiled pattern list

Test whether the node matches one of the patterns in the list

Returns 1 if it matches, 0 if it doesn't and -1 in case of failure

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