[PATCH] XML validity of kcfg files
frans.englich at telia.com
Sat Nov 6 19:11:54 GMT 2004
On Saturday 06 November 2004 17:33, Benjamin Meyer wrote:
> On Wednesday 03 November 2004 1:19 am, Frans Englich wrote:
> > On Wednesday 03 November 2004 02:22, Cornelius Schumacher wrote:
> > > On Wednesday 03 November 2004 01:24, Frans Englich wrote:
> > > > Anyway, attached is an XML Schema version for the KConfigXT format,
> > > > most of it is written but could use some polishing, and tighter
> > > > validation can also be done. If someone wants to do anything with it,
> > > > or in the future will do fancy stuff, it is here in the archives(I'll
> > > > not push it).
> > >
> > > Looks nice, but it failed to validate korganizer.kcfg for me. After
> > > adding a default namespace declaration to the kcfg file xmllint fails
> > > with an "Element kcfg content check failed" error. Is this due to the
> > > ordering constraints? Is there a better tool for validating XML files
> > > against XML schemas?
> > We can't blame xmllint for barfing, but it sure is lousy at it :) It
> > doesn't tell what was wrong, only a line number and the element(I filed a
> > bug report on libxml2). It barfed because the kcfg files was better at
> > following the format than the Schema :) This is now fixed, and a handful
> > of random kcfg files validates(including korganizer.kcfg AFAICT), but it
> > surely still has its quirks.
> Just to close this thread the report now also uses the schema and has been
> run and all the results are here:
It could also be noted that one should keep the question "Is my kcfg or the
Schema broken?" in mind at the start, since it is /possible/ there are quirks
left to be fleshed out.
More information about the kde-core-devel