|
Eneboo - Documentación para desarrolladores
|
#include "libxslt.h"#include <string.h>#include <libxml/xmlmemory.h>#include <libxml/tree.h>#include <libxml/valid.h>#include <libxml/hash.h>#include <libxml/xmlerror.h>#include <libxml/parserInternals.h>#include "xslt.h"#include "xsltInternals.h"#include "xsltutils.h"#include "imports.h"#include "templates.h"#include "keys.h"#include "pattern.h"#include "documents.h"Clases | |
| struct | _xsltStepState |
| struct | _xsltStepStates |
| struct | _xsltStepOp |
| struct | _xsltCompMatch |
| struct | _xsltParserContext |
'defines' | |
| #define | IN_LIBXSLT |
'typedefs' | |
| typedef struct _xsltStepState | xsltStepState |
| typedef xsltStepState * | xsltStepStatePtr |
| typedef struct _xsltStepStates | xsltStepStates |
| typedef xsltStepStates * | xsltStepStatesPtr |
| typedef struct _xsltStepOp | xsltStepOp |
| typedef xsltStepOp * | xsltStepOpPtr |
| typedef struct _xsltParserContext | xsltParserContext |
| typedef xsltParserContext * | xsltParserContextPtr |
Enumeraciones | |
| enum | xsltOp { XSLT_OP_END = 0, XSLT_OP_ROOT, XSLT_OP_ELEM, XSLT_OP_ATTR, XSLT_OP_PARENT, XSLT_OP_ANCESTOR, XSLT_OP_ID, XSLT_OP_KEY, XSLT_OP_NS, XSLT_OP_ALL, XSLT_OP_PI, XSLT_OP_COMMENT, XSLT_OP_TEXT, XSLT_OP_NODE, XSLT_OP_PREDICATE } |
| enum | xsltAxis { AXIS_CHILD = 1, AXIS_ATTRIBUTE } |
Funciones | |
| void | xsltFreeCompMatchList (xsltCompMatchPtr comp) |
: template match name | |
xsltNormalizeCompSteps: : pointer to template hash table entry : pointer to the stylesheet This is a hashtable scanner function to normalize the compiled steps of an imported stylesheet. | |
| #define | CUR (*ctxt->cur) |
| #define | SKIP(val) ctxt->cur += (val) |
| #define | NXT(val) ctxt->cur[(val)] |
| #define | CUR_PTR ctxt->cur |
| #define | SKIP_BLANKS while (IS_BLANK_CH(CUR)) NEXT |
| #define | CURRENT (*ctxt->cur) |
| #define | NEXT ((*ctxt->cur) ? ctxt->cur++: ctxt->cur) |
| #define | PUSH(op, val, val2, novar) if (xsltCompMatchAdd(ctxt, ctxt->comp, (op), (val), (val2), (novar))) goto error; |
| #define | SWAP() xsltSwapTopCompMatch(ctxt->comp); |
| #define | XSLT_ERROR(X) |
| #define | XSLT_ERROR0(X) |
| void | xsltNormalizeCompSteps (void *payload, void *data, const xmlChar *name ATTRIBUTE_UNUSED) |
| int | xsltTestCompMatchList (xsltTransformContextPtr ctxt, xmlNodePtr node, xsltCompMatchPtr comp) |
| xsltCompMatchPtr | xsltCompilePattern (const xmlChar *pattern, xmlDocPtr doc, xmlNodePtr node, xsltStylesheetPtr style, xsltTransformContextPtr runtime) |
| int | xsltAddTemplate (xsltStylesheetPtr style, xsltTemplatePtr cur, const xmlChar *mode, const xmlChar *modeURI) |
| xsltTemplatePtr | xsltGetTemplate (xsltTransformContextPtr ctxt, xmlNodePtr node, xsltStylesheetPtr style) |
| void | xsltCleanupTemplates (xsltStylesheetPtr style ATTRIBUTE_UNUSED) |
| void | xsltFreeTemplateHashes (xsltStylesheetPtr style) |
| #define CUR (*ctxt->cur) |
| #define CUR_PTR ctxt->cur |
| #define CURRENT (*ctxt->cur) |
| #define IN_LIBXSLT |
| #define NEXT ((*ctxt->cur) ? ctxt->cur++: ctxt->cur) |
| #define PUSH | ( | op, | |
| val, | |||
| val2, | |||
| novar | |||
| ) | if (xsltCompMatchAdd(ctxt, ctxt->comp, (op), (val), (val2), (novar))) goto error; |
| #define SKIP_BLANKS while (IS_BLANK_CH(CUR)) NEXT |
| #define SWAP | ( | ) | xsltSwapTopCompMatch(ctxt->comp); |
| #define XSLT_ERROR | ( | X | ) |
| #define XSLT_ERROR0 | ( | X | ) |
| typedef struct _xsltParserContext xsltParserContext |
| typedef xsltParserContext* xsltParserContextPtr |
| typedef struct _xsltStepOp xsltStepOp |
| typedef xsltStepOp* xsltStepOpPtr |
| typedef struct _xsltStepState xsltStepState |
| typedef xsltStepState* xsltStepStatePtr |
| typedef struct _xsltStepStates xsltStepStates |
| typedef xsltStepStates* xsltStepStatesPtr |
| enum xsltAxis |
| enum xsltOp |
| int 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
| void xsltCleanupTemplates | ( | xsltStylesheetPtr style | ATTRIBUTE_UNUSED | ) |
xsltCleanupTemplates: : an XSLT stylesheet
Cleanup the state of the templates used by the stylesheet and the ones it imports.
| xsltCompMatchPtr 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
| void xsltFreeCompMatchList | ( | xsltCompMatchPtr | comp | ) |
xsltFreeCompMatchList: : an XSLT comp list
Free up the memory allocated by all the elements of
| void xsltFreeTemplateHashes | ( | xsltStylesheetPtr | style | ) |
xsltFreeTemplateHashes: : an XSLT stylesheet
Free up the memory used by xsltAddTemplate/xsltGetTemplate mechanism
| xsltTemplatePtr 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
| int 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
1.7.4