version 1.92, 2010/10/13 15:35:41
|
version 1.95, 2010/10/13 15:47:51
|
Line 146 class MpdlXmlTextServer(SimpleItem):
|
Line 146 class MpdlXmlTextServer(SimpleItem):
|
docpath = docinfo['textURLPath'] |
docpath = docinfo['textURLPath'] |
url = docinfo['url'] |
url = docinfo['url'] |
selfurl = self.absolute_url() |
selfurl = self.absolute_url() |
|
pn = pageinfo['current'] |
|
|
text=self.getServerData("xpath.xql", "document=%s&xpath=%s&pn=%s"%(docinfo['textURLPath'],'//place',pn)) |
text=self.getServerData("xpath.xql", "document=%s&xpath=%s&pn=%s"%(docinfo['textURLPath'],'//place',pn)) |
logging.debug("documentViewer getGisPlaces (text) text:%s"%(text)) |
#logging.debug("documentViewer getGisPlaces (text) text:%s"%(text)) |
pagedom = Parse(text) |
pagedom = Parse(text) |
result =pagedom.xpath("//result/resultPage/*") |
result =pagedom.xpath("//result/resultPage/place") |
|
logging.debug("getGisPlaces (place) text:%s"%(place)) |
for l in result: |
for l in result: |
hrefNode= l.getAttributeNodeNS(None, u"id") |
hrefNode= l.getAttributeNodeNS(None, u"id") |
logging.debug("documentViewer getGisPlaces (characterNormalization) l:%s"%(l)) |
logging.debug("documentViewer getGisPlaces (characterNormalization) l:%s"%(l)) |