small fixes w.r.t. IS_XSLT_REAL_NODE change some makefile "distclean"
authorDaniel Veillard <veillard@src.gnome.org>
Thu, 18 Sep 2003 09:31:46 +0000 (09:31 +0000)
committerDaniel Veillard <veillard@src.gnome.org>
Thu, 18 Sep 2003 09:31:46 +0000 (09:31 +0000)
* libxslt/functions.c libxslt/numbers.c: small fixes w.r.t.
  IS_XSLT_REAL_NODE change
* python/Makefile.am Makefile.am: some makefile "distclean"
  target improvement from Graham Wilson
* xsltproc/xsltproc.c: small fix from Alexey Efimov for options
  display.
Daniel

ChangeLog
Makefile.am
libxslt/functions.c
libxslt/numbers.c
python/Makefile.am
xsltproc/xsltproc.c

index ef65a22..4650556 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+Thu Sep 18 11:28:43 CEST 2003 Daniel Veillard <daniel@veillard.com>
+
+       * libxslt/functions.c libxslt/numbers.c: small fixes w.r.t.
+         IS_XSLT_REAL_NODE change
+       * python/Makefile.am Makefile.am: some makefile "distclean"
+         target improvement from Graham Wilson
+       * xsltproc/xsltproc.c: small fix from Alexey Efimov for options
+         display.
+
 Mon Sep 15 07:41:14 PDT 2003 William Brack <wbrack@mmm.com.hk>
 
        * libxslt/xsltutils.h: Added XML_PI_NODE to the macro
index e9daaa0..9ac06c2 100644 (file)
@@ -47,6 +47,8 @@ xsltConf.sh: xsltConf.sh.in Makefile
               < $(srcdir)/xsltConf.sh.in > xsltConf.tmp \
        && mv xsltConf.tmp xsltConf.sh
 
+CLEANFILES = xsltConf.sh
+
 check-local: tests
 
 dummy:
index e66622c..b068a1d 100644 (file)
@@ -301,7 +301,8 @@ xsltDocumentFunction(xmlXPathParserContextPtr ctxt, int nargs)
             xmlNodePtr target;
 
             target = obj2->nodesetval->nodeTab[0];
-            if (target->type == XML_ATTRIBUTE_NODE) {
+            if ((target->type == XML_ATTRIBUTE_NODE) ||
+               (target->type == XML_PI_NODE)) {
                 target = ((xmlAttrPtr) target)->parent;
             }
             base = xmlNodeGetBase(target->doc, target);
index 3fe569d..94a69da 100644 (file)
@@ -215,7 +215,7 @@ xsltNumberFormatDecimal(xmlBufferPtr buffer,
                break;
            }
            pointer -= len;
-           strncpy((char *)pointer, temp_char, len);
+           strncpy((char *)pointer, (const char *)temp_char, len);
        }
        number /= 10.0;
        ++i;
index 597984d..b6ac577 100644 (file)
@@ -53,7 +53,8 @@ API_DESC = $(top_srcdir)/doc/libxslt-api.xml $(srcdir)/libxslt-python-api.xml
 GENERATED= $(srcdir)/libxsltclass.py \
            $(srcdir)/libxslt-export.c \
           $(srcdir)/libxslt-py.c \
-          $(srcdir)/libxslt-py.h
+          $(srcdir)/libxslt-py.h \
+          $(srcdir)/libxsltclass.txt
 
 $(GENERATED): gen_prog
 
@@ -69,6 +70,4 @@ endif
 tests test: all
        cd tests && $(MAKE) tests
 
-clean:
-       rm -f $(GENERATED) *.o libxslt.so *.pyc libxslt.py gen_prog
-
+CLEANFILES= $(GENERATED) *.o libxslt.so *.pyc libxslt.py gen_prog
index 8bd9992..0785171 100644 (file)
@@ -470,7 +470,9 @@ static void usage(const char *name) {
     printf("\t--output file or -o file: save to a given file\n");
     printf("\t--timing: display the time used\n");
     printf("\t--repeat: run the transformation 20 times\n");
+#ifdef LIBXML_DEBUG_ENABLED
     printf("\t--debug: dump the tree of the result instead\n");
+#endif
     printf("\t--dumpextensions: dump the registered extension elements and functions to stdout\n");
     printf("\t--novalid skip the Dtd loading phase\n");
     printf("\t--noout: do not dump the result\n");