svn: r5316
This commit is contained in:
Alex Roitman 2005-10-14 04:21:08 +00:00
parent 29022a6f1e
commit d1a7272342
3 changed files with 5 additions and 4 deletions

View File

@ -52,7 +52,7 @@ DATABASE
<!ELEMENT database (header, people?, families?, sources?, places?, objects?,
bookmarks?)>
<!ATTLIST database xmlns CDATA #FIXED "http://gramps-project.org/">
<!ATTLIST database xmlns CDATA #FIXED "http://gramps-project.org/xml/1.0.0/">
<!-- ************************************************************
HEADER

View File

@ -31,7 +31,7 @@
<grammar
datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"
ns="http://gramps-project.org/"
ns="http://gramps-project.org/xml/1.0.0/"
xmlns="http://relaxng.org/ns/structure/1.0">
<start><element name="database">

View File

@ -209,10 +209,11 @@ class XmlWriter:
self.g.write('<?xml version="1.0" encoding="UTF-8"?>\n')
self.g.write('<!DOCTYPE database '
'PUBLIC "-//GRAMPS//DTD GRAMPS XML V%s//EN"\n'
'PUBLIC "-//GRAMPS//DTD GRAMPS XML %s//EN"\n'
'"http://gramps-project.org/xml/%s/grampsxml.dtd">\n'
% (_xml_version,_xml_version))
self.g.write("<database xmlns=\"http://gramps-project.org/\">\n")
self.g.write('<database xmlns="http://gramps-project.org/xml/%s/">\n'
% _xml_version)
self.g.write(" <header>\n")
self.g.write(' <created date="%04d-%02d-%02d\"' %
(date[0],date[1],date[2]) )