On Friday, June 10, 2011 20:43:38 PM Pierre wrote: > BTW, what RNG parser do you use to generate this .h file ? > So far, we have a terrible one in a test case (yeah, I write ugly code > sometimes, sorry about that, but this one was gonnabe too complex > otherwise...)
I wrote a Relax NG parser and validator for WebODF. It works in any browser but can also be used on the commandline with the executable qtjsruntime that is part of webodf. I just committed the script i used: http://gitorious.org/odfkit/webodf/commit/9f13988d1d5c5e2a2119e90e8e8556ee27cada37/diffs I ran it like this: qtjsruntime lib/runtime.js relaxngToCPP.js csprd03/OpenDocument-v1.2- csprd03-schema.rng 2> odf.h The validator has about 20 test cases and can validate normal ODF files against the 1.2 spec. It does not check everything though. Cheers, Jos -- Jos van den Oever, software architect +49 391 25 19 15 53 074 3491911 http://kogmbh.com/legal/ _______________________________________________ calligra-devel mailing list calligra-devel@kde.org https://mail.kde.org/mailman/listinfo/calligra-devel