Re: Migrating to DB5

From: Date: Fri, 06 Jun 2008 16:35:25 +0000
Subject: Re: Migrating to DB5
References: 1 2 3 4 5  Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-10827@lists.php.net to get a copy of this message
On Fri, Jun 6, 2008 at 11:14 AM, Rudy Nappée <rudy.nappee@etu.u-bordeaux1.fr> wrote: > Hi ! > > I've done some tests with the migration script and the db4-upgrade.xsl > transformation. > > According to the official db4 to 5 conversion documentation, the files to > convert have to be DB4 valid... But, all of them aren't valid. For example, > when you cloak a referenced entity containing docbook elements, the xsl > transformation will found text nodes instead of docbook elements, and will > not process files correctly... > > The only way to use db4-upgrade.xsl seems to be with an assembled unchunked > xml file without entity references (else, entity contents will not be > "upgraded"). Here is the assembled pear manual which can be -in theory - > processed by the xsl transformation : > http://iutinfoa1.free.fr/SoC/.manual_db43.xml . Unfortunately > even the db5 > resulting file isn't valid neither (there are less errors however)... Hi Rudy, Did the conversion script not work for you? The conversion script should handle all of this for you... cloaking the entities and stripping out cdata sections so they are preserved. All within the individual XML files. http://wiki.pear.php.net/index.php/PEARDocMoveToDocbook5#Conversion_Script Make sure to pay attention to the first 15 lines of that file, which show how to get the perl script to cloak the entities, and the db4 xsl file which I used for the convert -- and the path to the peardoc cvs checkout directory. I just ran the script on my local peardoc checkout.. and it looks like 9079 files converted fine - only 9 files had errors converting --- all /fr/ files. -- Brett Bieber http://saltybeagle.com/

« previous php.pear.doc (#10827) next »