changeset 247:4015e0cea2b5

*** empty log message ***
author abukhman
date Mon, 11 Oct 2010 17:51:09 +0200
parents 6a43ff50eb9a
children 126262957b3d
files MpdlXmlTextServer.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MpdlXmlTextServer.py	Mon Oct 11 17:49:43 2010 +0200
+++ b/MpdlXmlTextServer.py	Mon Oct 11 17:51:09 2010 +0200
@@ -145,9 +145,9 @@
         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/place/")
+        result =pagedom.xpath("//result/resultPage/")
         for l in result:
-            hrefNode= l.getAttributeNodeNS(None, u"id")
+            hrefNode= l.getAttributeNodeNS(None, u"place")
             logging.debug("documentViewer (characterNormalization) l: %s"%(l))
             if hrefNode:
                 href= hrefNode.nodeValue