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

List:       koffice-devel
Subject:    Re: validating the ODF that KOffice writes
From:       Thomas Zander <zander () kde ! org>
Date:       2010-10-20 20:15:59
Message-ID: 201010202216.00138.zander () kde ! org
[Download RAW message or body]

The unit test in kotext does save testing as well, but it only tests that the 
document does not loose info.  Maybe this validation can be done in our unit 
test instead

On Wednesday 20. October 2010 12.25.31 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

-- 
Thomas Zander
_______________________________________________
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