31#define WITH_XSLT_DEBUG_AVT
51#if __STDC_VERSION__ >= 199901L
75 "xsltNewAttrVTPtr : malloc failed\n");
104 if (avt ==
NULL)
return;
111 xmlXPathFreeCompExpr((xmlXPathCompExprPtr) avt->
segments[
i]);
114 xmlXPathFreeCompExpr((xmlXPathCompExprPtr) avt->
segments[
i]);
182 xmlXPathCompExprPtr comp =
NULL;
184 int i = 0, lastavt = 0;
188 if ((
attr->children->type != XML_TEXT_NODE) ||
191 "Attribute '%s': The content is expected to be a single text "
192 "node when compiling an AVT.\n",
attr->
name);
200#ifdef WITH_XSLT_DEBUG_AVT
205#ifdef WITH_XSLT_DEBUG_AVT
207 "AVT %s: already compiled\n",
attr->
name);
229 if (*(
cur+1) ==
'{') {
236 if (*(
cur+1) ==
'}') {
255 while ((*
cur != 0) && (*
cur !=
'}')) {
257 if ((*
cur ==
'\'') || (*
cur ==
'"')) {
258 char delim = *(
cur++);
259 while ((*
cur != 0) && (*
cur != delim))
268 "Attribute '%s': The AVT has an unmatched '{'.\n",
285 "Attribute '%s': Failed to compile the expression "
313 }
else if (*
cur ==
'}') {
322 "Attribute '%s': The AVT has an unmatched '}'.\n",
343 "xsltCompileAttr: malloc problem\n");
345 if (
attr->psvi != avt) {
361 xmlXPathFreeCompExpr(comp);
379 xmlXPathCompExprPtr comp;
387 for (
i = 0;
i <
cur->nb_seg;
i++) {
391 comp = (xmlXPathCompExprPtr)
cur->segments[
i];
static xsltAttrVTPtr xsltNewAttrVT(xsltStylesheetPtr style)
xsltAttrVT * xsltAttrVTPtr
void xsltFreeAVTList(void *avt)
static xsltAttrVTPtr xsltSetAttrVTsegment(xsltAttrVTPtr avt, void *val)
static void xsltFreeAttrVT(xsltAttrVTPtr avt)
void xsltCompileAttr(xsltStylesheetPtr style, xmlAttrPtr attr)
xmlChar * xsltEvalAVT(xsltTransformContextPtr ctxt, void *avt, xmlNodePtr node)
struct _xsltAttrVT xsltAttrVT
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
static unsigned __int64 next
xmlReallocFunc xmlRealloc
struct _xsltAttrVT * next
xmlChar * xsltEvalXPathStringNs(xsltTransformContextPtr ctxt, xmlXPathCompExprPtr comp, int nsNr, xmlNsPtr *nsList)
XMLPUBFUN xmlChar * xmlStrndup(const xmlChar *cur, int len)
XMLPUBFUN xmlChar * xmlStrncat(xmlChar *cur, const xmlChar *add, int len)
XMLPUBFUN xmlChar * xmlStrcat(xmlChar *cur, const xmlChar *add)
XMLPUBFUN const xmlChar * xmlStrchr(const xmlChar *str, xmlChar val)
void xsltTransformError(xsltTransformContextPtr ctxt, xsltStylesheetPtr style, xmlNodePtr node, const char *msg,...)
xmlXPathCompExprPtr xsltXPathCompile(xsltStylesheetPtr style, const xmlChar *str)
xmlGenericErrorFunc xsltGenericDebug
void * xsltGenericDebugContext