changeset 249:6c6f0614d6d6

*** empty log message ***
author abukhman
date Mon, 11 Oct 2010 17:54:24 +0200
parents 126262957b3d
children 7775d87016b5
files MpdlXmlTextServer.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MpdlXmlTextServer.py	Mon Oct 11 17:52:42 2010 +0200
+++ b/MpdlXmlTextServer.py	Mon Oct 11 17:54:24 2010 +0200
@@ -145,10 +145,10 @@
         xpath='//place'
         text=self.getServerData("xpath.xql", "document=%s&xpath=%s&pn=%s"%(docinfo['textURLPath'], xpath,pn))
         pagedom = Parse(text)
-        result =pagedom.xpath("//result/resultPage/")
+        result =pagedom.xpath("//result/resultPage")
         for l in result:
-            hrefNode= l.getAttributeNodeNS(None, u"id")
-            logging.debug("documentViewer (characterNormalization) l: %s"%(l))
+            hrefNode= l.getAttributeNodeNS(None, u"place")
+            logging.debug("documentViewer (characterNormalization) l:%s"%(l))
             if hrefNode:
                 href= hrefNode.nodeValue
                 if href.startswith('id='):