Adding omit_xml_declaration=True to amara call, but does not yet work, considering...
authorFredrik Unger <fred@tree.se>
Thu, 8 Mar 2012 16:02:11 +0000 (17:02 +0100)
committerFredrik Unger <fred@tree.se>
Thu, 8 Mar 2012 16:02:11 +0000 (17:02 +0100)
src/tree-cutter.py

index ae7c2cb73e2e2f39f3eb6cbce5fb03602cd7f09f..4ca4809517990d889fc7d08ba2993be81a29ecce 100755 (executable)
@@ -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]