fixed to set current default value for XInclude when creating new
authorWilliam M. Brack <wbrack@src.gnome.org>
Wed, 13 Jul 2005 23:21:23 +0000 (23:21 +0000)
committerWilliam M. Brack <wbrack@src.gnome.org>
Wed, 13 Jul 2005 23:21:23 +0000 (23:21 +0000)
* libxslt/transform.c: fixed to set current default value for
  XInclude when creating new TransformContext
* libxslt/xslt.c: minor change for per-mille

ChangeLog
libxslt/transform.c
libxslt/xslt.c

index 781f06b..5c654e1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Tue Jul 13 16:16:31 PDT 2005 William Brack <wbrack@mmm.com.hk>
+
+       * libxslt/transform.c: fixed to set current default value for
+         XInclude when creating new TransformContext
+       * libxslt/xslt.c: minor change for per-mille
+
 Sun Jul 10 16:17:53 CEST 2005 Daniel Veillard <daniel@veillard.com>
 
        * libxslt/xsltwin32config.h*: try to avoid generating conflicts
index 7e3f33a..38618d1 100644 (file)
@@ -474,6 +474,7 @@ xsltNewTransformContext(xsltStylesheetPtr style, xmlDocPtr doc) {
     cur->sec = xsltGetDefaultSecurityPrefs();
     cur->debugStatus = xslDebugStatus;
     cur->traceCode = (unsigned long*) &xsltDefaultTrace;
+    cur->xinclude = xsltGetXIncludeDefault();
 
     return(cur);
 }
index 4f57888..3d0b054 100644 (file)
@@ -181,7 +181,8 @@ static xsltDecimalFormatPtr
 xsltNewDecimalFormat(xmlChar *name)
 {
     xsltDecimalFormatPtr self;
-    static xmlChar permille[4] = {0xe2, 0x80, 0xb0};   /* UTF8 for 0x2030 */
+    /* UTF-8 for 0x2030 */
+    static const xmlChar permille[4] = {0xe2, 0x80, 0xb0, 0};
 
     self = xmlMalloc(sizeof(xsltDecimalFormat));
     if (self != NULL) {