# HG changeset patch # User abukhman # Date 1286275927 -7200 # Node ID 9226f1b456ebe10119f0eb2796f77998801dbc20 # Parent 60c98265a8dd869fdfcff6800a4c3dfc5c237137 *** empty log message *** diff -r 60c98265a8dd -r 9226f1b456eb MpdlXmlTextServer.py --- 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