comparison MpdlXmlTextServer.py @ 246:6a43ff50eb9a

*** empty log message ***
author abukhman
date Mon, 11 Oct 2010 17:49:43 +0200
parents 437d697a40e5
children 4015e0cea2b5
comparison
equal deleted inserted replaced
245:437d697a40e5 246:6a43ff50eb9a
143 def getGisPlases(self, docinfo): 143 def getGisPlases(self, docinfo):
144 """ Show all Gis Places of whole Page""" 144 """ Show all Gis Places of whole Page"""
145 xpath='//place' 145 xpath='//place'
146 text=self.getServerData("xpath.xql", "document=%s&xpath=%s&pn=%s"%(docinfo['textURLPath'], xpath,pn)) 146 text=self.getServerData("xpath.xql", "document=%s&xpath=%s&pn=%s"%(docinfo['textURLPath'], xpath,pn))
147 pagedom = Parse(text) 147 pagedom = Parse(text)
148 result =pagedom.xpath("//result/resultPage/place") 148 result =pagedom.xpath("//result/resultPage/place/")
149 for l in result: 149 for l in result:
150 hrefNode= l.getAttributeNodeNS(None, u"id") 150 hrefNode= l.getAttributeNodeNS(None, u"id")
151 logging.debug("documentViewer (characterNormalization) l: %s"%(l)) 151 logging.debug("documentViewer (characterNormalization) l: %s"%(l))
152 if hrefNode: 152 if hrefNode:
153 href= hrefNode.nodeValue 153 href= hrefNode.nodeValue