Mercurial > hg > documentViewer
changeset 197:9226f1b456eb
*** empty log message ***
author | abukhman |
---|---|
date | Tue, 05 Oct 2010 12:52:07 +0200 |
parents | 60c98265a8dd |
children | 812710c57dfc |
files | MpdlXmlTextServer.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/MpdlXmlTextServer.py Tue Oct 05 12:49:25 2010 +0200 +++ b/MpdlXmlTextServer.py Tue Oct 05 12:52:07 2010 +0200 @@ -137,7 +137,8 @@ text=self.getServerData("xpath.xql", "document=%s&xpath=%s"%(docinfo['textURLPath'], xpath)) logging.debug("documentViewer (text) text: %s"%(text)) #docinfo['numPages']=text('resultPage') - docinfo['numPages']= pagedom.text("//resultPage") + pagedom = Parse(text) + docinfo['numPages']= pagedom.xpath("//resultPage") #logging.debug("documentViewer (characterNormalization) docinfo['numPages']: %s"%(docinfo['numPages'])) return docinfo