Mercurial > hg > documentViewer
comparison MpdlXmlTextServer.py @ 258:7762ccd2cd3b
*** empty log message ***
author | abukhman |
---|---|
date | Wed, 13 Oct 2010 17:45:44 +0200 |
parents | d1eb63cf3410 |
children | 56767b764f37 |
comparison
equal
deleted
inserted
replaced
257:d1eb63cf3410 | 258:7762ccd2cd3b |
---|---|
149 pn = pageinfo['current'] | 149 pn = pageinfo['current'] |
150 | 150 |
151 text=self.getServerData("xpath.xql", "document=%s&xpath=%s&pn=%s"%(docinfo['textURLPath'],'//place',pn)) | 151 text=self.getServerData("xpath.xql", "document=%s&xpath=%s&pn=%s"%(docinfo['textURLPath'],'//place',pn)) |
152 logging.debug("documentViewer getGisPlaces (text) text:%s"%(text)) | 152 logging.debug("documentViewer getGisPlaces (text) text:%s"%(text)) |
153 pagedom = Parse(text) | 153 pagedom = Parse(text) |
154 result =pagedom.xpath("//result/resultPage/*") | 154 result =pagedom.xpath("//result/resultPage/place") |
155 for l in result: | 155 for l in result: |
156 hrefNode= l.getAttributeNodeNS(None, u"id") | 156 hrefNode= l.getAttributeNodeNS(None, u"id") |
157 logging.debug("documentViewer getGisPlaces (characterNormalization) l:%s"%(l)) | 157 logging.debug("documentViewer getGisPlaces (characterNormalization) l:%s"%(l)) |
158 if hrefNode: | 158 if hrefNode: |
159 href= hrefNode.nodeValue | 159 href= hrefNode.nodeValue |