version 1.77, 2010/10/11 14:44:09
|
version 1.79, 2010/10/11 15:03:17
|
Line 143 class MpdlXmlTextServer(SimpleItem):
|
Line 143 class MpdlXmlTextServer(SimpleItem):
|
def getGisPlases(self, docinfo): |
def getGisPlases(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"%(docinfo['textURLPath'], xpath)) |
text=self.getServerData("xpath.xql", "document=%s&xpath=%s&pn=%s"%(docinfo['textURLPath'], xpath,pn)) |
pagedom = Parse(text) |
pagedom = Parse(text) |
result =pagedom.xpath("//result/resultPage/") |
result =pagedom.xpath("//result/resultPage/") |
for l in result: |
for l in result: |
hrefNode= l.getAttributeNodeNS(None, u"place") |
hrefNode= l.getAttributeNodeNS(None, u"place") |
logging.debug("YYYY hrefNode%s"%hrefNode) |
|
if hrefNode: |
if hrefNode: |
href= hrefNode.nodeValue |
href= hrefNode.nodeValue |
if href.startswith('id='): |
if href.startswith('id='): |