fixed entity problem in exslt:tokenize uncovered by newapi.xsl changed to
authorWilliam M. Brack <wbrack@src.gnome.org>
Tue, 18 Nov 2003 05:57:38 +0000 (05:57 +0000)
committerWilliam M. Brack <wbrack@src.gnome.org>
Tue, 18 Nov 2003 05:57:38 +0000 (05:57 +0000)
* libexslt/strings.c: fixed entity problem in exslt:tokenize
  uncovered by newapi.xsl
* libxslt/transform.c,libxslt/pattern.c,libxslt/keys.c: changed
  to use IS_BLANK_CH for char compares (fixes warnings)

ChangeLog
libexslt/strings.c
libxslt/keys.c
libxslt/pattern.c
libxslt/transform.c

index 0fcc533..3bc4cea 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Tue Nov 18 13:42:12 HKT 2003 William Brack <wbrack@mmm.com.hk>
+
+       * libexslt/strings.c: fixed entity problem in exslt:tokenize
+         uncovered by newapi.xsl
+       * libxslt/transform.c,libxslt/pattern.c,libxslt/keys.c: changed
+         to use IS_BLANK_CH for char compares (fixes warnings)
+
 Fri Nov 14 23:59:08 CET 2003 Daniel Veillard <daniel@veillard.com>
 
        * libxslt/preproc.c: applied fix from Bjorn Reese to close
index 9acfee9..89801b2 100644 (file)
@@ -94,9 +94,9 @@ exsltStrTokenizeFunction(xmlXPathParserContextPtr ctxt, int nargs)
                 }
             }
             if (token != cur) {
-                node =
-                    xmlNewChild((xmlNodePtr) container, NULL,
-                                (const xmlChar *) "token", token);
+               node = xmlNewDocRawNode(container, NULL,
+                                   (const xmlChar *) "token", token);
+                xmlAddChild((xmlNodePtr) container, node);
                xmlXPathNodeSetAddUnique(ret->nodesetval, node);
             }
         }
index f3a1f63..ad210a1 100644 (file)
@@ -256,7 +256,7 @@ xsltAddKey(xsltStylesheetPtr style, const xmlChar *name,
     current = end = 0;
     while (match[current] != 0) {
        start = current;
-       while (IS_BLANK(match[current]))
+       while (IS_BLANK_CH(match[current]))
            current++;
        end = current;
        while ((match[end] != 0) && (match[end] != '|')) {
index e7d4a51..1914caa 100644 (file)
@@ -1027,7 +1027,7 @@ xsltTestCompMatchList(xsltTransformContextPtr ctxt, xmlNodePtr node,
 #define CUR_PTR ctxt->cur
 
 #define SKIP_BLANKS                                                    \
-    while (IS_BLANK(CUR)) NEXT
+    while (IS_BLANK_CH(CUR)) NEXT
 
 #define CURRENT (*ctxt->cur)
 #define NEXT ((*ctxt->cur) ?  ctxt->cur++: ctxt->cur)
@@ -1729,7 +1729,7 @@ xsltCompilePattern(const xmlChar *pattern, xmlDocPtr doc,
     current = end = 0;
     while (pattern[current] != 0) {
        start = current;
-       while (IS_BLANK(pattern[current]))
+       while (IS_BLANK_CH(pattern[current]))
            current++;
        end = current;
        level = 0;
index 442112c..b107cfe 100644 (file)
@@ -2059,12 +2059,12 @@ xsltDocumentElem(xsltTransformContextPtr ctxt, xmlNodePtr node,
 
        element = elements;
        while (*element != 0) {
-           while (IS_BLANK(*element))
+           while (IS_BLANK_CH(*element))
                element++;
            if (*element == 0)
                break;
            end = element;
-           while ((*end != 0) && (!IS_BLANK(*end)))
+           while ((*end != 0) && (!IS_BLANK_CH(*end)))
                end++;
            element = xmlStrndup(element, end - element);
            if (element) {