projects
/
treecutter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
871ad5f
)
Adding omit_xml_declaration=True to amara call, but does not yet work, considering...
author
Fredrik Unger
<fred@tree.se>
Thu, 8 Mar 2012 16:02:11 +0000
(17:02 +0100)
committer
Fredrik Unger
<fred@tree.se>
Thu, 8 Mar 2012 16:02:11 +0000
(17:02 +0100)
src/tree-cutter.py
patch
|
blob
|
history
diff --git
a/src/tree-cutter.py
b/src/tree-cutter.py
index ae7c2cb73e2e2f39f3eb6cbce5fb03602cd7f09f..4ca4809517990d889fc7d08ba2993be81a29ecce 100755
(executable)
--- a/
src/tree-cutter.py
+++ b/
src/tree-cutter.py
@@
-149,7
+149,7
@@
class Page():
infile = os.path.basename(tempfile.mktemp())
outfile = tempfile.mktemp()
tfi = open(infile,'w')
- tfi.write(self._doc.xml_encode())
+ tfi.write(self._doc.xml_encode(
omit_xml_declaration=True
))
tfi.close()
# cmd = ["saxon-xslt-xinclude","-o",outfile,infile,style_xslt]
cmd = ["xsltproc","--xinclude","--output",outfile,style_xslt,infile]