18 #ifdef WITH_XSLT_DEBUG 19 #define WITH_XSLT_DEBUG_AVT 22 #define MAX_AVT_SEG 10 39 #if __STDC_VERSION__ >= 199901L 63 "xsltNewAttrVTPtr : malloc failed\n");
92 if (avt ==
NULL)
return;
99 xmlXPathFreeCompExpr((xmlXPathCompExprPtr) avt->
segments[
i]);
102 xmlXPathFreeCompExpr((xmlXPathCompExprPtr) avt->
segments[
i]);
174 int i = 0, lastavt = 0;
181 "Attribute '%s': The content is expected to be a single text " 182 "node when compiling an AVT.\n",
attr->
name);
190 #ifdef WITH_XSLT_DEBUG_AVT 195 #ifdef WITH_XSLT_DEBUG_AVT 197 "AVT %s: already compiled\n",
attr->
name);
219 if (*(
cur+1) ==
'{') {
226 if (*(
cur+1) ==
'}') {
244 while ((*
cur != 0) && (*
cur !=
'}')) {
246 if ((*
cur ==
'\'') || (*
cur ==
'"')) {
247 char delim = *(
cur++);
248 while ((*
cur != 0) && (*
cur != delim))
257 "Attribute '%s': The AVT has an unmatched '{'.\n",
271 xmlXPathCompExprPtr comp;
276 "Attribute '%s': Failed to compile the expression " 295 }
else if (*
cur ==
'}') {
304 "Attribute '%s': The AVT has an unmatched '}'.\n",
324 "xsltCompileAttr: malloc problem\n");
326 if (
attr->psvi != avt) {
358 xmlXPathCompExprPtr comp;
366 for (
i = 0;
i <
cur->nb_seg;
i++) {
370 comp = (xmlXPathCompExprPtr)
cur->segments[
i];
XMLPUBFUN xmlChar *XMLCALL xmlStrndup(const xmlChar *cur, int len)
struct _xsltAttrVT xsltAttrVT
xmlXPathCompExprPtr xsltXPathCompile(xsltStylesheetPtr style, const xmlChar *str)
struct _xsltAttrVT * next
XMLPUBFUN const xmlChar *XMLCALL xmlStrchr(const xmlChar *str, xmlChar val)
XMLPUBFUN xmlChar *XMLCALL xmlStrcat(xmlChar *cur, const xmlChar *add)
xmlChar * xsltEvalAVT(xsltTransformContextPtr ctxt, void *avt, xmlNodePtr node)
XMLPUBVAR xmlReallocFunc xmlRealloc
void * xsltGenericDebugContext
XMLPUBFUN xmlChar *XMLCALL xmlStrncat(xmlChar *cur, const xmlChar *add, int len)
XMLPUBVAR xmlFreeFunc xmlFree
xmlGenericErrorFunc xsltGenericDebug
static void xsltFreeAttrVT(xsltAttrVTPtr avt)
static xsltAttrVTPtr xsltSetAttrVTsegment(xsltAttrVTPtr avt, void *val)
static unsigned __int64 next
void xsltFreeAVTList(void *avt)
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
XMLPUBVAR xmlMallocFunc xmlMalloc
xmlChar * xsltEvalXPathStringNs(xsltTransformContextPtr ctxt, xmlXPathCompExprPtr comp, int nsNr, xmlNsPtr *nsList)
xsltAttrVT * xsltAttrVTPtr
static xsltAttrVTPtr xsltNewAttrVT(xsltStylesheetPtr style)
void xsltTransformError(xsltTransformContextPtr ctxt, xsltStylesheetPtr style, xmlNodePtr node, const char *msg,...)
void xsltCompileAttr(xsltStylesheetPtr style, xmlAttrPtr attr)