+Fri Jun 22 00:11:18 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
+
+ * libxslt/numbers.c: fix of a small bug
+ * libxslt/transform.c libxslt/variables.c libxslt/xslt.c: cleanups
+ while bug-hunting
+
Tue Jun 19 16:13:49 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
* tests/docbook/Makefile.am: added XHTML and XSL FO to the
*(--pointer) = 0;
alpha_list = (is_upper) ? alpha_upper_list : alpha_lower_list;
- for (i = 1; i < (int)sizeof(buffer); i++) {
+ for (i = 1; i < (int)sizeof(temp_string); i++) {
number--;
*(--pointer) = alpha_list[((int)fmod(number, alpha_size))];
number /= alpha_size;
#ifdef WITH_XSLT_DEBUG_PROCESS
if (cur->type == XML_PI_NODE)
xsltGenericDebug(xsltGenericDebugContext,
- "xsltDefaultProcessOneNode: template found for PI %s\n",
+ "xsltDefaultProcessOneNode: template found for PI %s\n",
cur->name);
else if (cur->type == XML_COMMENT_NODE)
xsltGenericDebug(xsltGenericDebugContext,
- "xsltDefaultProcessOneNode: template found for comment\n");
+ "xsltDefaultProcessOneNode: template found for comment\n");
#endif
oldNode = ctxt->node;
ctxt->node = cur;
if (ret < 0) {
xsltGenericError(xsltGenericErrorContext,
"xsltDocumentElem: unable to save to %s\n", filename);
- } else {
#ifdef WITH_XSLT_DEBUG_EXTRA
+ } else {
xsltGenericDebug(xsltGenericDebugContext,
"Wrote %d bytes to %s\n", ret, , filename);
#endif
if (newdoc) {
#ifdef WITH_XSLT_DEBUG_PROCESS
xsltGenericDebug(xsltGenericDebugContext,
- "xsltApplyTemplates: Changing document - context doc %s, xpathdoc %s\n",
+ "xsltApplyTemplates: Changing document - context doc %s, xpathdoc %s\n",
newCDocPtr->doc->URL, newXDocPtr->URL);
#endif
#ifdef WITH_XSLT_DEBUG_VARIABLE
if ((style->doc != NULL) && (style->doc->URL != NULL)) {
-
xsltGenericDebug(xsltGenericDebugContext,
- "Registering global variables from %s\n",
+ "Registering global variables from %s\n",
style->doc->URL);
}
#endif
+
while (elem != NULL) {
xsltStackElemPtr def;
xsltGenericDebug(xsltGenericDebugContext,
"Defining global variable %s\n", name);
#endif
+
elem = xsltNewStackElem();
if (elem == NULL)
return(-1);
xsltGenericDebug(xsltGenericDebugContext,
"Evaluating user parameter %s=%s\n", name, value);
#endif
+
/*
* Name lookup
*/
prefix);
if (ns == NULL) {
xsltGenericError(xsltGenericErrorContext,
- "user param : no namespace bound to prefix %s\n", prefix);
+ "user param : no namespace bound to prefix %s\n", prefix);
href = NULL;
} else {
href = ns->href;
result, 0);
#endif
#endif
+
elem = xsltNewStackElem();
if (elem != NULL) {
elem->name = xmlStrdup(ncname);
" select %s", comp->select);
xsltGenericDebug(xsltGenericDebugContext, "\n");
#endif
+
elem = xsltNewStackElem();
if (elem == NULL)
return(NULL);
"xsl:param : missing name attribute\n");
return(NULL);
}
+
#ifdef WITH_XSLT_DEBUG_VARIABLE
xsltGenericDebug(xsltGenericDebugContext,
"Handling param %s\n", comp->name);
#endif
-
if (comp->select == NULL) {
tree = cur->children;
} else {
#include <libxml/uri.h>
#include <libxml/xmlerror.h>
#include <libxml/parserInternals.h>
+#include <libxml/xpathInternals.h>
#include "xslt.h"
#include "xsltInternals.h"
#include "pattern.h"