version 1.86, 2010/10/11 15:57:22
|
version 1.88, 2010/10/13 15:06:03
|
Line 142 class MpdlXmlTextServer(SimpleItem):
|
Line 142 class MpdlXmlTextServer(SimpleItem):
|
|
|
def getGisPlaces(self, docinfo): |
def getGisPlaces(self, docinfo): |
""" Show all Gis Places of whole Page""" |
""" Show all Gis Places of whole Page""" |
xpath='//place' |
#xpath='//place' |
text=self.getServerData("xpath.xql", "document=%s&xpath=%s&pn=%s"%(docinfo['textURLPath'], xpath,pn)) |
text=self.getServerData("xpath.xql", "document=%s&xpath='//place'%s&pn=%s"%(docinfo['textURLPath'],pn)) |
|
logging.debug("documentViewer getGisPlaces (text) text:%s"%(text)) |
pagedom = Parse(text) |
pagedom = Parse(text) |
result =pagedom.xpath("//result/resultPage/*") |
result =pagedom.xpath("//result/resultPage/*") |
for l in result: |
for l in result: |