@@ -122,7 +122,7 @@ def epoch(t):
122
122
#
123
123
#-------------------------------------------------------------------------
124
124
125
- NAMESPACE = '{http://gramps-project.org/xml/1.8.0 /}'
125
+ NAMESPACE = '{http://gramps-project.org/xml/1.7.1 /}'
126
126
127
127
class lxmlGramplet (Gramplet ):
128
128
"""
@@ -321,7 +321,7 @@ def ReadXML(self, entry):
321
321
#tree = etree.ElementTree(file=filename)
322
322
tree = etree .parse (filename )
323
323
doctype = tree .docinfo .doctype
324
- current = '<!DOCTYPE database PUBLIC "-//Gramps//DTD Gramps XML 1.8.0 //EN" "http://gramps-project.org/xml/1.8.0 /grampsxml.dtd">'
324
+ current = '<!DOCTYPE database PUBLIC "-//Gramps//DTD Gramps XML 1.7.1 //EN" "http://gramps-project.org/xml/1.7.1 /grampsxml.dtd">'
325
325
if self .RNGValidation (tree , rng ) == True :
326
326
try :
327
327
self .ParseXML (tree , filename )
@@ -423,12 +423,13 @@ def ParseXML(self, tree, filename):
423
423
424
424
if three .tag == NAMESPACE + 'pname' :
425
425
text = str (three .attrib .get ('value' ))
426
- translation = str (three .attrib .get ('lang' ))
427
- if translation == 'None' :
428
- translation = xml_lang ()[0 :2 ]
429
- text = text + _ (' - (? or %(lang)s)' ) % {'lang' :translation }
430
- else :
431
- text = text + _ (' - (%(lang)s)' ) % {'lang' :translation }
426
+ # GEPS045 (XML schema 1.8.0)
427
+ #translation = str(three.attrib.get('lang'))
428
+ #if translation == 'None':
429
+ #translation = xml_lang()[0:2]
430
+ #text = text + _(' - (? or %(lang)s)') % {'lang':translation}
431
+ #else:
432
+ #text = text + _(' - (%(lang)s)') % {'lang':translation}
432
433
if text not in places :
433
434
places .append (text ) # temp display
434
435
if three .tag == NAMESPACE + 'stitle' and three .text not in sources :
@@ -537,7 +538,7 @@ def ParseXML(self, tree, filename):
537
538
def xsd (self , xsd , filename ):
538
539
"""
539
540
Look at schema, validation, conform, structure, content, etc...
540
- Code for 1.8.0 and +
541
+ Code for 1.7.1
541
542
"""
542
543
543
544
# syntax check against XSD for file format
@@ -558,7 +559,7 @@ def xsd(self, xsd, filename):
558
559
def check_valid (self , filename ):
559
560
"""
560
561
Look at schema, validation, conform, etc...
561
- Code for 1.8.0 and +
562
+ Code for 1.7.1
562
563
"""
563
564
564
565
# syntax check against DTD for file format
0 commit comments