[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue-reports/src/adapters/filters/general/libxs...
From: |
Bajusz Tamás |
Subject: |
gnue-reports/src/adapters/filters/general/libxs... |
Date: |
Thu, 06 Nov 2003 08:15:12 -0500 |
CVSROOT: /cvsroot/gnue
Module name: gnue-reports
Branch:
Changes by: Bajusz Tamás <address@hidden> 03/11/06 08:15:12
Modified files:
src/adapters/filters/general/libxslt: Adapter.py
Log message:
fixed libxslt filter on win32
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-reports/src/adapters/filters/general/libxslt/Adapter.py.diff?tr1=1.2&tr2=1.3&r1=text&r2=text
Patches:
Index: gnue-reports/src/adapters/filters/general/libxslt/Adapter.py
diff -c gnue-reports/src/adapters/filters/general/libxslt/Adapter.py:1.2
gnue-reports/src/adapters/filters/general/libxslt/Adapter.py:1.3
*** gnue-reports/src/adapters/filters/general/libxslt/Adapter.py:1.2 Mon Jun
16 08:39:07 2003
--- gnue-reports/src/adapters/filters/general/libxslt/Adapter.py Thu Nov
6 08:15:11 2003
***************
*** 39,45 ****
from gnue.reports.base.GROutputAdapter import TransformAdapter as Base
- from gnue.common.utils.FileUtils import urlize
class _MessageHandler:
def write(self, msg):
--- 39,44 ----
***************
*** 70,86 ****
raise "Filter configuration file is missing the 'template=' parameter"
# load stylesheet and parse it
! styledoc = libxml2.parseFile(urlize(xslfile))
style = libxslt.parseStylesheetDoc(styledoc)
# load input file
! doc = libxml2.parseFile(urlize(self.infile))
# do the processing
result = style.applyStylesheet(doc, None)
# write the result
! style.saveResultToFilename(urlize(outfile), result, 0)
# some cleanup
style.freeStylesheet()
--- 69,85 ----
raise "Filter configuration file is missing the 'template=' parameter"
# load stylesheet and parse it
! styledoc = libxml2.parseFile(xslfile)
style = libxslt.parseStylesheetDoc(styledoc)
# load input file
! doc = libxml2.parseFile(self.infile)
# do the processing
result = style.applyStylesheet(doc, None)
# write the result
! style.saveResultToFilename(outfile, result, 0)
# some cleanup
style.freeStylesheet()
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gnue-reports/src/adapters/filters/general/libxs...,
Bajusz Tamás <=