2
# Basic wrapper for xsltproc. Maybe we should directly use the lixslt Python
10
self.catalogs = os.getenv("SGML_CATALOG_FILES")
13
def run(self, xslfile, xmlfile, outfile, opts=None, params=None):
14
cmd = "xsltproc --xinclude -o %s " % outfile
15
if self.use_catalogs and self.catalogs:
19
cmd += "--param %s \"'%s'\" " % (param[0], param[1])
21
cmd += " ".join(opts) + " "
22
cmd += "%s \"%s\"" % (xslfile, xmlfile)
25
def system(self, cmd):
26
if self.verbose: print cmd
29
raise ValueError("xsltproc failed")