17#define WITH_XSLT_DEBUG_TEMPLATES
42 xmlXPathObjectPtr
res;
46 int oldProximityPosition, oldContextSize;
50 "xsltEvalXPathPredicate: No context or instruction\n");
54 oldContextSize = ctxt->
xpathCtxt->contextSize;
55 oldProximityPosition = ctxt->
xpathCtxt->proximityPosition;
57 oldNamespaces = ctxt->
xpathCtxt->namespaces;
68 xmlXPathFreeObject(
res);
69#ifdef WITH_XSLT_DEBUG_TEMPLATES
71 "xsltEvalXPathPredicate: returns %d\n",
ret));
74#ifdef WITH_XSLT_DEBUG_TEMPLATES
76 "xsltEvalXPathPredicate: failed\n"));
83 ctxt->
xpathCtxt->namespaces = oldNamespaces;
85 ctxt->
xpathCtxt->contextSize = oldContextSize;
86 ctxt->
xpathCtxt->proximityPosition = oldProximityPosition;
108 xmlXPathObjectPtr
res;
117 "xsltEvalXPathStringNs: No context or instruction\n");
121 oldInst = ctxt->
inst;
122 oldNode = ctxt->
node;
123 oldPos = ctxt->
xpathCtxt->proximityPosition;
126 oldNamespaces = ctxt->
xpathCtxt->namespaces;
134 if (
res->type != XPATH_STRING)
135 res = xmlXPathConvertString(
res);
136 if (
res->type == XPATH_STRING) {
141 "xpath : string() function didn't return a String\n");
143 xmlXPathFreeObject(
res);
147#ifdef WITH_XSLT_DEBUG_TEMPLATES
149 "xsltEvalXPathString: returns %s\n",
ret));
151 ctxt->
inst = oldInst;
152 ctxt->
node = oldNode;
154 ctxt->
xpathCtxt->proximityPosition = oldPos;
156 ctxt->
xpathCtxt->namespaces = oldNamespaces;
196 int oldLastTextSize, oldLastTextUse;
198 if ((ctxt ==
NULL) || (contextNode ==
NULL) || (inst ==
NULL) ||
215 "Failed to create temporary node\n");
276 if (*(
cur+1) ==
'{') {
286 while ((*
cur != 0) && (*
cur !=
'}')) {
288 if ((*
cur ==
'\'') || (*
cur ==
'"')) {
289 char delim = *(
cur++);
290 while ((*
cur != 0) && (*
cur != delim))
299 "xsltAttrTemplateValueProcessNode: unmatched '{'\n");
307 else if (*
expr ==
'{') {
311 xmlXPathCompExprPtr comp;
315 if ((nsList ==
NULL) && (inst !=
NULL)) {
318 nsList = xmlGetNsList(inst->
doc, inst);
319 if (nsList !=
NULL) {
320 while (nsList[
i] !=
NULL)
327 xmlXPathFreeCompExpr(comp);
336 }
else if (*
cur ==
'}') {
345 "xsltAttrTemplateValueProcessNode: unmatched '}'\n");
413#ifdef WITH_XSLT_DEBUG_TEMPLATES
415 "xsltEvalAttrValueTemplate: %s returns %s\n",
expr,
ret));
495#ifdef XSLT_REFACTORED
496 if (
attr->psvi == xsltXSLTAttrMarker)
510 "Internal error: The children of an attribute node of a "
511 "literal result element are not in the expected form.\n");
578 "Internal error: Failed to evaluate the AVT "
579 "of attribute '{%s}%s'.\n",
583 "Internal error: Failed to evaluate the AVT "
584 "of attribute '%s'.\n",
603 "Internal error: Failed to create attribute '{%s}%s'.\n",
607 "Internal error: Failed to create attribute '%s'.\n",
657#ifdef XSLT_REFACTORED
658 if ((
attr->psvi == xsltXSLTAttrMarker) &&
686#ifdef XSLT_REFACTORED
687 if (
attr->psvi == xsltXSLTAttrMarker) {
705 "Internal error: The children of an attribute node of a "
706 "literal result element are not in the expected form.\n");
718 if (
attr->ns != origNs) {
721#ifdef XSLT_REFACTORED
765 "Internal error: Failed to create attribute '{%s}%s'.\n",
769 "Internal error: Failed to create attribute '%s'.\n",
789 if (valueAVT ==
NULL) {
796 "Internal error: Failed to evaluate the AVT "
797 "of attribute '{%s}%s'.\n",
801 "Internal error: Failed to evaluate the AVT "
802 "of attribute '%s'.\n",
808 text->content = valueAVT;
829 return(
target->properties);
xmlChar * xsltEvalAVT(xsltTransformContextPtr ctxt, void *avt, xmlNodePtr node)
INT copy(TCHAR source[MAX_PATH], TCHAR dest[MAX_PATH], INT append, DWORD lpdwFlags, BOOL bTouch)
void xsltApplyAttributeSet(xsltTransformContextPtr ctxt, xmlNodePtr node, xmlNodePtr inst, const xmlChar *attrSets)
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
#define next_attribute(a)
xmlNsPtr xsltGetSpecialNamespace(xsltTransformContextPtr ctxt, xmlNodePtr invocNode, const xmlChar *nsName, const xmlChar *nsPrefix, xmlNodePtr target)
xmlNsPtr xsltGetNamespace(xsltTransformContextPtr ctxt, xmlNodePtr cur, xmlNsPtr ns, xmlNodePtr out)
XMLPUBFUN const xmlChar *XMLCALL xmlDictLookup(xmlDictPtr dict, const xmlChar *name, int len)
XMLPUBFUN int XMLCALL xmlDictOwns(xmlDictPtr dict, const xmlChar *str)
XMLPUBVAR xmlFreeFunc xmlFree
XMLPUBFUN xmlChar *XMLCALL xmlNodeGetContent(const xmlNode *cur)
XMLPUBFUN xmlNodePtr XMLCALL xmlNewDocNode(xmlDocPtr doc, xmlNsPtr ns, const xmlChar *name, const xmlChar *content)
XMLPUBFUN xmlAttrPtr XMLCALL xmlNewDocProp(xmlDocPtr doc, const xmlChar *name, const xmlChar *value)
XMLPUBFUN xmlNodePtr XMLCALL xmlNewText(const xmlChar *content)
XMLPUBFUN void XMLCALL xmlFreeNodeList(xmlNodePtr cur)
XMLPUBFUN void XMLCALL xmlFreeNode(xmlNodePtr cur)
XMLPUBFUN xmlAttrPtr XMLCALL xmlNewNsProp(xmlNodePtr node, xmlNsPtr ns, const xmlChar *name, const xmlChar *value)
struct _xmlNode * children
xmlXPathContextPtr xpathCtxt
xmlChar * xsltEvalXPathString(xsltTransformContextPtr ctxt, xmlXPathCompExprPtr comp)
const xmlChar * xsltEvalStaticAttrValueTemplate(xsltStylesheetPtr style, xmlNodePtr inst, const xmlChar *name, const xmlChar *ns, int *found)
xmlChar * xsltAttrTemplateValueProcess(xsltTransformContextPtr ctxt, const xmlChar *str)
xmlChar * xsltAttrTemplateValueProcessNode(xsltTransformContextPtr ctxt, const xmlChar *str, xmlNodePtr inst)
xmlChar * xsltEvalAttrValueTemplate(xsltTransformContextPtr ctxt, xmlNodePtr inst, const xmlChar *name, const xmlChar *ns)
xmlAttrPtr xsltAttrListTemplateProcess(xsltTransformContextPtr ctxt, xmlNodePtr target, xmlAttrPtr attrs)
xmlAttrPtr xsltAttrTemplateProcess(xsltTransformContextPtr ctxt, xmlNodePtr target, xmlAttrPtr attr)
xmlNodePtr * xsltTemplateProcess(xsltTransformContextPtr ctxt ATTRIBUTE_UNUSED, xmlNodePtr node)
xmlChar * xsltEvalTemplateString(xsltTransformContextPtr ctxt, xmlNodePtr contextNode, xmlNodePtr inst)
xmlChar * xsltEvalXPathStringNs(xsltTransformContextPtr ctxt, xmlXPathCompExprPtr comp, int nsNr, xmlNsPtr *nsList)
int xsltEvalXPathPredicate(xsltTransformContextPtr ctxt, xmlXPathCompExprPtr comp, xmlNsPtr *nsList, int nsNr)
XMLPUBFUN xmlIDPtr XMLCALL xmlAddID(xmlValidCtxtPtr ctxt, xmlDocPtr doc, const xmlChar *value, xmlAttrPtr attr)
XMLPUBFUN int XMLCALL xmlIsID(xmlDocPtr doc, xmlNodePtr elem, xmlAttrPtr attr)
XMLPUBFUN const xmlChar *XMLCALL xmlStrchr(const xmlChar *str, xmlChar val)
XMLPUBFUN xmlChar *XMLCALL xmlStrndup(const xmlChar *cur, int len)
XMLPUBFUN xmlChar *XMLCALL xmlStrcat(xmlChar *cur, const xmlChar *add)
XMLPUBFUN xmlChar *XMLCALL xmlStrncat(xmlChar *cur, const xmlChar *add, int len)
XMLPUBFUN xmlChar *XMLCALL xmlStrdup(const xmlChar *cur)
XMLPUBFUN int XMLCALL xmlStrEqual(const xmlChar *str1, const xmlChar *str2)
void xsltTransformError(xsltTransformContextPtr ctxt, xsltStylesheetPtr style, xmlNodePtr node, const char *msg,...)
xmlGenericErrorFunc xsltGenericDebug
void * xsltGenericDebugContext
xmlChar * xsltGetNsProp(xmlNodePtr node, const xmlChar *name, const xmlChar *nameSpace)
#define XSLT_TRACE(ctxt, code, call)