From 15abc562bf6ca5150b215850ea12fe4c92274c8e Mon Sep 17 00:00:00 2001 From: Fredrik Unger Date: Thu, 8 Mar 2012 17:02:11 +0100 Subject: [PATCH] Adding omit_xml_declaration=True to amara call, but does not yet work, considering to move to lxml or similar. --- src/tree-cutter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tree-cutter.py b/src/tree-cutter.py index ae7c2cb..4ca4809 100755 --- 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] -- 2.30.2