From 7ce295f45955d6a93581778c06160c45f700a9d3 Mon Sep 17 00:00:00 2001 From: Fredrik Unger Date: Tue, 15 Feb 2011 17:53:12 +0100 Subject: [PATCH] Added xsltproc test, 10x faster. Need to check output. --- src/tree-cutter.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tree-cutter.py b/src/tree-cutter.py index 782f58a..c07820d 100755 --- a/src/tree-cutter.py +++ b/src/tree-cutter.py @@ -108,7 +108,8 @@ def xsltConvert(doc): tfi = open(infile,'w') tfi.write(doc.xml_encode()) tfi.close() - cmd = ["saxon-xslt-xinclude","-o",outfile,infile,style_xslt] +# cmd = ["saxon-xslt-xinclude","-o",outfile,infile,style_xslt] + cmd = ["xsltproc","--xinclude","--output",outfile,style_xslt,infile] retcode = subprocess.call(cmd) if retcode: print 'Error: '+' '.join(cmd)+' Returncode ['+str(retcode)+']' -- 2.30.2