From: Jérôme <rom...@ya...> - 2009-05-15 18:05:09
|
> I will start with my basic knowledges (xsltproc parser, simple loops)! Evenrefs on person are still broken as I do not know how to parse something which is not handled yet ... :( > If anyone has an old GRAMPS XML file that is not supported in the current version and, for some reason, cannot install an intermediate version to upgrade the file to a later version then please create a bug report at http://bugs.gramps-project.org. I am happy to update their old GRAMPS XML to the latest release if they are happy to send it to me privately. I agree with Gary, the only safety way is to use Gramps-2.x and importing old databases. http://www.gramps-project.org/bugs/view.php?id=2206 At first glance, here what changed on GRAMPS XML since Gramps-1.0 : 1. The XML header : <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE database PUBLIC "-//GRAMPS//DTD GRAMPS XML 1.2.0//EN" "http://gramps-project.org/xml/1.2.0/grampsxml.dtd"> <database xmlns="http://gramps-project.org/xml/1.2.0/"> previously was : <?xml version="1.0" encoding="iso-8859-1"?> < <!DOCTYPE database SYSTEM "gramps.dtd" []> < <database> (non-ASCII characters ???) 2. Attribute on HOME person <people home= previously was : <people default= 3. <person id="I0"> <event type="Death"> <dateval val="1945-09-29"/> <place ref="P1"/> is now, something like : <person id="I0"> <eventref hlink="_a701e8fe8ea06c7fba4" role="Primary"/> </person> <event id="E0000" handle="_a701e8fe8ea06c7fba4"> <type>Death</type> <dateval val="1945-09-29"/> <place hlink="_HINT6DP8JGGL0KKB8J"/> * Maybe Testing : ==date parser== Date was just a textual value on Gramps-1.0.x. How this will be parsed by current date handler ? ==number of characters on fields== Does 2.x introduces limitations ? Also, handle and hlink attributes will be added on first import (BSDDB references). Sources, places, objects seems to be the same, 2.x moved event as a primary object, was the major DB upgrade. Jérôme Jérôme a écrit : > yes, I forgot previous dependencies (python 2.4 and related libs, GNOME > libs ...) :-[ > >> Any ideas? > > Fortunately, we are talking about documented open format. :) > I could try to start a XSLT script (DTD for gramps-1.0.x to DTD for > gramps-3.1.x) ! http://www.gramps-project.org/wiki/index.php?title=Xsl > > I know there is some XML wizards using Gramps : > Michiel Nauta > http://www.gramps-project.org/wiki/index.php?title=DenominoViso > Tim Waugh (xmlto author, was a devel/contributor) > http://www.gramps-project.org/wiki/images/4/42/Ancestors.xsl.gz > http://www.gramps-project.org/wiki/images/2/2f/Birthday.xsl.gz > > I will start with my basic knowledges (xsltproc parser, simple loops)! > > > Jérôme > > > Anthony E. Caudel a écrit : >> On May 14, 2009, at 3:02 AM, Jérôme wrote: >> >>> Yes, this is a known issue with old databases : >>> >>> http://www.gramps-project.org/bugs/view.php?id=2527 >>> http://www.gramps-project.org/bugs/view.php?id=2931 >>> http://www.gramps-project.org/bugs/view.php?id=2560 >>> http://www.gramps-project.org/bugs/view.php?id=2023 >>> http://www.gramps-project.org/bugs/view.php?id=2847 >>> http://www.gramps-project.org/bugs/view.php?id=2108 >>> http://www.gramps-project.org/bugs/view.php?id=2931 >>> >>> For migrations problems (1.0.x -> 2.0.x -> 2.2.x -> 3.0.x -> 3.1.x), >>> you could try to use old sources for importing/exporting up-to-date >>> GRAMPS XML : >>> >>> 1. download and decompressed old sources (2.0.11.tar.gz or >>> gramps.2.2.10.tar.gz => /gramps/src) >>> http://sourceforge.net/project/showfiles.php?group_id=25770&package_id=109309 >>> >>> >>> 2. to rename const.py.in => const.py >>> >>> 3.A. on console (/gramps/src) : >>> $ python gramps.py -i your_database.gramps -o new_database.gramps >>> This will try to import your 1.0.x database and to export 2.0.x XML data >>> http://gramps-project.org/gramps-manual/2.2/en/apd.html#cmdline-opt-import >>> >>> http://gramps-project.org/gramps-manual/2.2/en/apd.html#cmdline-opt-export >>> >>> (not tested) >>> >>> 3.B. or to use menu >>> on console (/gramps/src) : >>> $ python gramps.py >>> then File->Import, File->Export >>> >>> 4. same steps for next major GRAMPS versions (new_database2.xml to >>> new_database3.xml, etc ...) >>> >>> >>> Jérôme >>> >> >> Boy, I sure didn't mean to cause such an intense debate. But it's an >> important issue it seems. At the same time I fully agree with those who >> say let's not shoot the developers. They have a thankless job and as >> far as I am concerned, are doing a super job. Bravo! And I love Gramps! >> >> I tried the above procedure (#1 and 2) of Jérôme but it didn't work. >> Got errors; probably dealing with using Python versions greater than >> 2.4. (I'm using Kubuntu 9.04 which uses Python 2.6) >> >> I also d'l a .deb of Gramps 2.2 and tried to get dpkg to install it but >> there were too many dependency errors. >> >> I think that if I could get a copy of an older distro, it might not have >> these dependency errors. >> >> Any ideas? >> >> Tony > > > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables > unlimited royalty-free distribution of the report engine > for externally facing server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Gramps-users mailing list > Gra...@li... > https://lists.sourceforge.net/lists/listinfo/gramps-users |