projects
/
treecutter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
837b434
)
Added xsltproc test, 10x faster. Need to check output.
author
Fredrik Unger
<fred@tree.se>
Tue, 15 Feb 2011 16:53:12 +0000
(17:53 +0100)
committer
Fredrik Unger
<fred@tree.se>
Tue, 15 Feb 2011 16:53:12 +0000
(17:53 +0100)
src/tree-cutter.py
patch
|
blob
|
history
diff --git
a/src/tree-cutter.py
b/src/tree-cutter.py
index 782f58ade4d185e699faab0608ec65d7f15812a0..c07820d802f7aec11d1bb4a09f57d43f6806bccb 100755
(executable)
--- 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)+']'