changeset 319:580f2bd4c0c9

*** empty log message ***
author abukhman
date Fri, 15 Oct 2010 15:36:48 +0200
parents ecb97f468add
children 719e6e985677
files MpdlXmlTextServer.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MpdlXmlTextServer.py	Fri Oct 15 15:30:16 2010 +0200
+++ b/MpdlXmlTextServer.py	Fri Oct 15 15:36:48 2010 +0200
@@ -187,9 +187,12 @@
         viewMode=  pageinfo['viewMode']
         text = self.getServerData("page-fragment.xql","document=%s&mode=%s&pn=%s"%(docinfo['textURLPath'], 'text',  pn))
         dom =Parse(text)
-        logging.debug("XAXAX :%s"%(text))
         pagedivs = dom.xpath("//div[@class='pageNumberOrig']")
         logging.debug("getOrigPages :%s"%(pagedivs))
+        for l in pagedivs:
+            hrefNode = l.getAttributeNodeNS(None, u"class")
+            href=hrefNode.nodeValue
+            logging.debug("XXXXXXXXXXXgetOrigPagesXXXXXXXX :%s"%(href))
         return "pagedivs"
     
     def getTextPage(self, mode="text", pn=1, docinfo=None, pageinfo=None, highlightQuery=None,sn=None, viewMode=None, tocMode=None, tocPN=None, characterNormalization=""):