Re: DTDs and other fun



On Thu, 2012-01-26 at 17:30 -0500, Shaun McCance wrote:
> I mostly agree with that. It certainly means nobody is validating
> these files at build/install time.

I am, but not against any DTD:
http://www.murrayc.com/blog/permalink/2010/03/30/testing-glade-files/
though I would like to use a DTD.

>  The question is, "should they?"

I would like to do any testing that I can, particularly if it's easy.

> People don't usually put that stuff in their Makefiles unless you
> make it easy for them. It comes down to whether there's a high rate
> of invalid .ui files being installed.

It happens sometimes, and it usually causes crashes. It's nice to avoid
it even if it's rare.

>  I kind of suspect no, because
> they're almost always machine-generated. With menu files written
> (for now) by hand, that might be different.

Glade has been a little funky over the last few years, so hand-editing
has often been necessary.

> Of course, having an invalid DTD in the docs (and another one for
> GtkUIManager, incidentally) isn't good. If nobody cares about the
> DTD per se, maybe we should look at less 1980s ways of conveying
> the grammar.

-- 
murrayc murrayc com
www.murrayc.com
www.openismus.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]