Changeset 250:7775d87016b5 in documentViewer for MpdlXmlTextServer.py
- Timestamp:
- Oct 11, 2010, 3:57:22 PM (14 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
MpdlXmlTextServer.py
r249 r250 141 141 return docinfo 142 142 143 def getGisPla ses(self, docinfo):143 def getGisPlaces(self, docinfo): 144 144 """ Show all Gis Places of whole Page""" 145 145 xpath='//place' 146 146 text=self.getServerData("xpath.xql", "document=%s&xpath=%s&pn=%s"%(docinfo['textURLPath'], xpath,pn)) 147 147 pagedom = Parse(text) 148 result =pagedom.xpath("//result/resultPage ")148 result =pagedom.xpath("//result/resultPage/*") 149 149 for l in result: 150 hrefNode= l.getAttributeNodeNS(None, u" place")151 logging.debug("documentViewer (characterNormalization) l:%s"%(l))150 hrefNode= l.getAttributeNodeNS(None, u"id") 151 logging.debug("documentViewer getGisPlaces (characterNormalization) l:%s"%(l)) 152 152 if hrefNode: 153 153 href= hrefNode.nodeValue
Note: See TracChangeset
for help on using the changeset viewer.