GNOME Bugzilla – Bug 316770
OMF validation errors in gfloppy-ja.omf
Last modified: 2007-08-13 12:56:48 UTC
This bug has been opened here: http://bugzilla.ubuntu.com/show_bug.cgi?id=15844 "The command "scrollkeeper-rebuilddb -v" reports (among other things): OMF validation error: Element resource content does not follow the DTD, expecting (creator+ , maintainer* , contributor* , title , date , version* , subject* , description? , type* , coverage* , format , identifier , language , relation* , source* , rights*), got (creator title contributor date subject format identifier language relation ) OMF file [/usr/share/omf/gnome-utils/gfloppy-ja.omf] does not validate against ScrollKeeper-OMF DTD: /usr/share/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd Unable to register /usr/share/omf/gnome-utils/gfloppy-ja.om --- I do not use japaneese environment so I do not know what is the effect of that."
Created attachment 52427 [details] [review] fixes the issue
Well, I could not reproduce this yet on my linux box. I've already updated to the GNOME-2.12 series, then I just run scrollkeeper you've done like: $ gfloppy --version Gnome gfloppy 2.12.0 $ scrollkeeper-config --version 0.3.14 $ env LANG=C LC_ALL=C scrollkeeper-rebuilddb -v > & /tmp/gfloppy-omf_bug.log $ grep "OMF validation error" /tmp/gfloppy-omf_bug.log $ grep gfloppy-ja /tmp/gfloppy-omf_bug.log scrollkeeper-update: warning: /usr/share/omf/gnome-utils/gfloppy-ja.omf overrides /usr/local/share/omf/gnome-utils/gfloppy-ja.omf Registering /usr/share/omf/gnome-utils/gfloppy-ja.omf So, How can I find your problem?
PS: I have plain build all of GNOME 2.12, I don't use any distributions.
$ LANG=C scrollkeeper-install -v /var/lib/scrollkeeper/ /usr/share/omf/gnome-utils/gfloppy-ja.omf Registering /usr/share/omf/gnome-utils/gfloppy-ja.omf OMF validation error: Element resource content does not follow the DTD, expecting (creator+ , maintainer* , contributor* , title , date , version* , subject* , description? , type* , coverage* , format , identifier , language , relation* , source* , rights*), got (creator title contributor date subject format identifier language relation ) OMF file [/usr/share/omf/gnome-utils/gfloppy-ja.omf] does not validate against ScrollKeeper-OMF DTD: /usr/share/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd
OK, Thanks. I found this warning when I just run your command-line on both ubuntu(5.04)/debian(Sarge) distributions. And I also did same installing on Fedora and my plain build machine. It seems that this warnig would be out if omf file has invalid tags which DTD does not permit as elements.In this case, that is <contributor></contributor> pair. I will remove this tag pair from gfloppy-ja.omf, and try to valid to install it again with new scrollkeeper which has patched with "debian/patches/06_clean_xml_validation_context.diff". Then, if OK, I'll commit it to the both HEAD/gnome-2.12 branch ASAP. Incidentally, Fedora has avoided meaningly this waring by patching to the same code.
Ahh, I have mistaken the above casus. It's just encoding issue with UTF-8 (ie: by numeric character reference). I fixed and try to valid it.
Done. A new omf file has been in HEAD branch.