Diff for /MPIWGWeb/xmlhelper.py between versions 1.1 and 1.2

version 1.1, 2004/02/04 10:03:33 version 1.2, 2004/06/28 18:47:14
Line 15  from Ft.Xml.XLink import XLinkElements Line 15  from Ft.Xml.XLink import XLinkElements
 #from Ft.Xml import EMPTY_NAMESPACE  #from Ft.Xml import EMPTY_NAMESPACE
 from Ft.Lib import Uri  from Ft.Lib import Uri
   
 xml2html={'WEB_normal':('<p>','</p>'),'Normal':('<p>','</p>'),'WEB_picture':('<p>','</p>'),'WEB_figuretitle':('<i>','</i>'),'WEB_bibliography':('<p><i>','</i></p>'),'Web_kursiv':('<i>','</i>'),'WEB_kursiv':('<i>','</i>'),'WEB_hyperlink':('','')}  xml2html={'WEB_normal':('<p>','</p>'),'Normal':('<p>','</p>'),'WEB_picture':('<p>','</p>'),'WEB_figuretitle':('<i>','</i>'),'WEB_bibliography':('<p><i>','</i></p>'),'Web_kursiv':('<i>','</i>'),'WEB_kursiv':('<i>','</i>'),'WEB_hyperlink':('',''),'Hyperlink':('','')}
   
 def addToDict(dict,name,value):  def addToDict(dict,name,value):
     if name=="":      if name=="":
Line 187  def getText(nodelist): Line 187  def getText(nodelist):
             node.data.encode('utf-8','ignore')              node.data.encode('utf-8','ignore')
             #print "RC",rc              #print "RC",rc
         elif node.tagName =="inline":          elif node.tagName =="inline":
             print "HI", node.getAttribute('class')  
             rc+=par2html([node])              rc+=par2html([node])
         elif node.attributes:          elif node.attributes:
             print "xlink?"              print "xlink?"

Removed from v.1.1  
changed lines
  Added in v.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>