--- ECHO_content/vlp_xmlhelpers.py 2008/08/05 16:17:46 1.14 +++ ECHO_content/vlp_xmlhelpers.py 2008/09/08 11:12:41 1.15 @@ -192,6 +192,8 @@ def link2html(self,str): str=re.sub("\&","&",str) dom=xml.dom.minidom.parseString(""+utf8ify(str)+"") + + links=dom.getElementsByTagName("link") @@ -200,7 +202,10 @@ def link2html(self,str): ref=link.getAttribute("ref") pn=link.getAttribute("page") mk=link.getAttribute("mk") - + href= link.getAttribute("href") + if href: + link.setAttribute("class","external") + if self.checkRef(ref): more = "" if pn: @@ -211,8 +216,11 @@ def link2html(self,str): link.setAttribute("href",self.REQUEST['SERVER_URL']+"/references?id="+ref+more) + newxml=dom.toxml('utf-8') + + retStr=regexpTXT.search(newxml) retStr = retStr.group(1)