From d870bb9cba73cde6026ccfe64f23987c42e9456b Mon Sep 17 00:00:00 2001 From: Fredrik Unger Date: Mon, 4 Jun 2012 12:45:48 +0200 Subject: [PATCH] Display xpointer details to simplify debugging. If there are several xincludes in a document and several translations it is hard to find the xinclude call that failed. Priting the xpointer helps localize the problem. --- treecutter/page.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/treecutter/page.py b/treecutter/page.py index e02a03c..1cb2baf 100644 --- a/treecutter/page.py +++ b/treecutter/page.py @@ -70,7 +70,7 @@ class Page(): os.chdir(cwd) xmlblock = str(xml.stdout.read()) te = time() - print " [%5.2f s]" % (round(te-ts,2)) + print " [%5.2f s] (%s)" % (round(te-ts,2),c.xpointer) xstr = bindery.parse(xmlblock) idp = c.xml_index_on_parent for x in xstr.xml_children: -- 2.30.2