SOURCES: gretl-libxslt-1.1.15.patch (NEW) - work around invalid XS...

saq saq at pld-linux.org
Wed Sep 21 18:28:43 CEST 2005


Author: saq                          Date: Wed Sep 21 16:28:43 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- work around invalid XSLT which libxslt >= 1.1.15 no longer supports
  (http://mail.gnome.org/archives/xslt/2005-September/msg00015.html)

---- Files affected:
SOURCES:
   gretl-libxslt-1.1.15.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/gretl-libxslt-1.1.15.patch
diff -u /dev/null SOURCES/gretl-libxslt-1.1.15.patch:1.1
--- /dev/null	Wed Sep 21 18:28:43 2005
+++ SOURCES/gretl-libxslt-1.1.15.patch	Wed Sep 21 18:28:37 2005
@@ -0,0 +1,25 @@
+--- gretl-1.2.4/doc/commands/xsltrans.c.orig	2005-09-21 18:08:32.000000000 +0200
++++ gretl-1.2.4/doc/commands/xsltrans.c	2005-09-21 18:10:23.000000000 +0200
+@@ -101,7 +101,7 @@
+ 
+     /* make plain text "hlp" output */
+     if (output == OUTPUT_BOTH || output == OUTPUT_HLP) {
+-	full_fname("gretltxt.xsl", docdir, styname);
++	full_fname("gretltxt_cli.xsl", docdir, styname);
+ 	style = xsltParseStylesheetFile(styname);
+ 	if (style == NULL) {
+ 	    err = 1;
+@@ -120,6 +120,13 @@
+ 		}
+ 		xmlFreeDoc(result);
+ 	    }
++	    xsltFreeStylesheet(style);
++	}
++	full_fname("gretltxt_gui.xsl", docdir, styname);
++	style = xsltParseStylesheetFile(styname);
++	if (style == NULL) {
++	    err = 1;
++	} else {
+ 	    /* gui version */
+ 	    result = xsltApplyStylesheet(style, doc, gui_params);
+ 	    if (result == NULL) {
================================================================



More information about the pld-cvs-commit mailing list