|
ReactOS 0.4.16-dev-2208-g6350669
|
#include "libxslt.h"#include <string.h>#include <libxml/xmlmemory.h>#include <libxml/tree.h>#include <libxml/xpath.h>#include <libxml/xpathInternals.h>#include "xslt.h"#include "xsltutils.h"#include "xsltInternals.h"#include "templates.h"
Go to the source code of this file.
Classes | |
| struct | _xsltAttrVT |
Macros | |
| #define | IN_LIBXSLT |
| #define | MAX_AVT_SEG 10 |
Typedefs | |
| typedef struct _xsltAttrVT | xsltAttrVT |
| typedef xsltAttrVT * | xsltAttrVTPtr |
Functions | |
| static xsltAttrVTPtr | xsltNewAttrVT (xsltStylesheetPtr style) |
| static void | xsltFreeAttrVT (xsltAttrVTPtr avt) |
| void | xsltFreeAVTList (void *avt) |
| static xsltAttrVTPtr | xsltSetAttrVTsegment (xsltAttrVTPtr avt, void *val) |
| void | xsltCompileAttr (xsltStylesheetPtr style, xmlAttrPtr attr) |
| xmlChar * | xsltEvalAVT (xsltTransformContextPtr ctxt, void *avt, xmlNodePtr node) |
| typedef struct _xsltAttrVT xsltAttrVT |
| typedef xsltAttrVT* xsltAttrVTPtr |
| void xsltCompileAttr | ( | xsltStylesheetPtr | style, |
| xmlAttrPtr | attr | ||
| ) |
xsltCompileAttr: @style: a XSLT process context @attr: the attribute coming from the stylesheet.
Precompile an attribute in a stylesheet, basically it checks if it is an attribute value template, and if yes, establish some structures needed to process it at transformation time.
Definition at line 177 of file attrvt.c.
Referenced by xsltParseTemplateContent().
| xmlChar * xsltEvalAVT | ( | xsltTransformContextPtr | ctxt, |
| void * | avt, | ||
| xmlNodePtr | node | ||
| ) |
xsltEvalAVT: @ctxt: the XSLT transformation context @avt: the prevompiled attribute value template info @node: the node hosting the attribute
Process the given AVT, and return the new string value.
Returns the computed string value or NULL, must be deallocated by the caller.
Definition at line 377 of file attrvt.c.
Referenced by xsltAttrListTemplateProcess(), and xsltAttrTemplateProcess().
|
static |
xsltFreeAttrVT: @avt: pointer to an xsltAttrVT structure
Free up the memory associated to the attribute value template
Definition at line 101 of file attrvt.c.
Referenced by xsltFreeAVTList().
xsltFreeAVTList: @avt: pointer to an list of AVT structures
Free up the memory associated to the attribute value templates
Definition at line 131 of file attrvt.c.
Referenced by xsltFreeStylesheet().
|
static |
xsltNewAttrVT: @style: a XSLT process context
Build a new xsltAttrVT structure
Returns the structure or NULL in case of error
Definition at line 68 of file attrvt.c.
Referenced by xsltCompileAttr().
|
static |
xsltSetAttrVTsegment: @ avt: pointer to an xsltAttrVT structure @ val: the value to be set to the next available segment
Within xsltCompileAttr there are several places where a value needs to be added to the 'segments' array within the xsltAttrVT structure, and at each place the allocated size may have to be re-allocated. This routine takes care of that situation.
Returns the avt pointer, which may have been changed by a re-alloc
Definition at line 153 of file attrvt.c.
Referenced by xsltCompileAttr().