X-Git-Url: https://source.tree.se/git?p=treecutter.git;a=blobdiff_plain;f=src%2Ftree-cutter.py;h=4ca4809517990d889fc7d08ba2993be81a29ecce;hp=ae7c2cb73e2e2f39f3eb6cbce5fb03602cd7f09f;hb=15abc562bf6ca5150b215850ea12fe4c92274c8e;hpb=871ad5fa325ef4acb87867107dcee68ea8bfa308 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]