Mercurial > hg > documentViewer
changeset 250:7775d87016b5
*** empty log message ***
author | abukhman |
---|---|
date | Mon, 11 Oct 2010 17:57:22 +0200 |
parents | 6c6f0614d6d6 |
children | d358d3701d99 |
files | MpdlXmlTextServer.py |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/MpdlXmlTextServer.py Mon Oct 11 17:54:24 2010 +0200 +++ b/MpdlXmlTextServer.py Mon Oct 11 17:57:22 2010 +0200 @@ -140,15 +140,15 @@ docinfo['numPages']=int(getTextFromNode(result[0])) return docinfo - def getGisPlases(self, docinfo): + def getGisPlaces(self, docinfo): """ Show all Gis Places of whole Page""" 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") + result =pagedom.xpath("//result/resultPage/*") for l in result: - hrefNode= l.getAttributeNodeNS(None, u"place") - logging.debug("documentViewer (characterNormalization) l:%s"%(l)) + hrefNode= l.getAttributeNodeNS(None, u"id") + logging.debug("documentViewer getGisPlaces (characterNormalization) l:%s"%(l)) if hrefNode: href= hrefNode.nodeValue if href.startswith('id='):