ReactOS 0.4.16-dev-306-g647d351
|
#include "precomp.h"
Go to the source code of this file.
Classes | |
struct | _xsltAttrVT |
Macros | |
#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 168 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 356 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 89 of file attrvt.c.
Referenced by xsltFreeAVTList(), and xsltSetAttrVTsegment().
xsltFreeAVTList: @avt: pointer to an list of AVT structures
Free up the memory associated to the attribute value templates
Definition at line 119 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 56 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 141 of file attrvt.c.
Referenced by xsltCompileAttr().