[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Re: validating the ODF that KOffice writes
From:       Jos van den Oever <jos.van.den.oever () kogmbh ! com>
Date:       2010-10-20 13:06:57
Message-ID: 201010201506.57951.jos.van.den.oever () kogmbh ! com
[Download RAW message or body]

On Wednesday, October 20, 2010 12:25:31 pm Jos van den Oever wrote:
> Hi all,
> 
> Last week I visited the ODF plugfest in Brussels. During testing of KOffice
> it came up that the ODF that KOffice writes is nearly always invalid. In
> my opinion, this can be improved by testing more, which should lead to
> awareness and fixes. So I extended the tests in the build server [1] to
> test (part of) the validity of the ODF documents that are written.
> Currently, only the files that are round-tripped are tested. That means
> all ODF files that are in kofficetests. These are read by
> kword/kspread/kpresenter and written out again.
> 
> The validation is now done with OpenDocument-v1.2-cd05-schema.rng since
> KOffice writes out office:version="1.2" since February 2008.
> 
> So far I fixed a number of issues [3] that caused validation to fail and at
> this point quite a few files that are round-tripped are valid. There are,
> however quite a few that are not valid still.
> 
> Here I attach a list of issues that are left. Most of them should be easy
> to fix. I consider that any known case where KOffice writes invalid ODF is
> a release blocker.
> 
> You can reproduce the problems by loading the listed files from
> kofficetests and save them again. Then the new script is run like this:
>   tools/scripts/validateODF.py myODFfile.odt
> If the output is not clear enough, you can use JING [4]. E.g.
>   unzip myODFfile.odt content.xml
>   java -jar jing.jar -i tools/scripts/OpenDocument-v1.2-cd05-schema.rng \
>      content.xml
> 
> Have fun!
> Jos
> 
> [1] http://158.36.191.251:8080
> [2] svn commit 847826
>   
> http://websvn.kde.org/trunk/koffice/libs/odf/KoOdfWriteStore.cpp?r1=770130
> &r2=847826 [3] svn commits 1187692, 1187696,  1187699
> [4] http://www.thaiopensource.com/relaxng/jing.html

Another good way of testing validity is looking at the officeshots galleries, 
that list roundtrip quality of ODF supporting software includeing KOffice 2.3 
beta 2:

http://officeshots.org/galleries

Cheers,
Jos

-- 
Jos van den Oever, software architect
+49 391 25 19 15 53
http://kogmbh.com/legal/
_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic