version 1.81, 2010/10/11 15:45:51
|
version 1.85, 2010/10/11 15:54:24
|
Line 145 class MpdlXmlTextServer(SimpleItem):
|
Line 145 class MpdlXmlTextServer(SimpleItem):
|
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=%s&pn=%s"%(docinfo['textURLPath'], xpath,pn)) |
pagedom = Parse(text) |
pagedom = Parse(text) |
result =pagedom.xpath("//result/resultPage/place") |
result =pagedom.xpath("//result/resultPage") |
for l in result: |
for l in result: |
hrefNode= l.getAttributeNodeNS(None, u"id") |
hrefNode= l.getAttributeNodeNS(None, u"place") |
logging.debug("documentViewer (characterNormalization) l: %s"%(l)) |
logging.debug("documentViewer (characterNormalization) l: %s"%(l)) |
if hrefNode: |
if hrefNode: |
href= hrefNode.nodeValue |
href= hrefNode.nodeValue |