Updating the KConfigXT XML schema to cover the i18n context attribute

Josef Spillner spillner at kde.org
Mon Mar 9 15:41:22 GMT 2009


Am Montag, 9. März 2009 16:27:24 schrieb Eike Hein:
> I've tried to address this, and my patch to kcfg.xsd is
> attached here. My XML schema mojo is relatively weak, how-
> ever, and I bet there's a more elegant way that avoids the
> brute-forcish duplication I've done.

There are not only better ways, but even ways which result in syntactically 
correct schemas as opposed to using both inline typing and explicit type 
information on the same elements :-)

Just add a @name attribute to the complexType definition, move it to the top 
level and refer to this name using "kfcg:$name" in the @type attribute for the 
labels and tooltips.

Josef




More information about the kde-core-devel mailing list