Okay,

I spent some time working on the DTD yesterday. It is attached. It has
been a while since I last did this, so there may be errors, typos,
etc. in it. The biggest difference I found was that XML does not allow
for omission of start-tag or end-tag. Not a big deal though, unless
typing in XML by hand or being really tigh on memory, e.g. running on
a chipcard :-)

Note that the DTD is NOT complete yet. Not all widgets/tags are
supported. There may also be room for improvement, for example I don't
know if e.g. a GtkHBox widget can have more than one child. The
current DTD allows for 0 or more children, but if it is in fact 1, or
1 or more, the DTD won't catch this yet.

I also spotted some room for improvement in glade (I think). For
example signal is used in two different ways in the construction of a
menu. The one without tags inside might be called signal_emit or
something like that.

I'll continue to work on the DTD until it is complete BTW. 

Erlend.

Martijn van Beers wrote:
> 
> On Wed, Oct 20, 1999 at 11:00:38AM +0100, Damon Chaplin wrote:
> > Martijn van Beers wrote:
> > > While going through gbwidget.c, looking how to split it up further,
> > > I noticed a lot of it was for loading and saving the xml. Why don't
> > > we put this in load.[ch] and save.[ch]?. These are currently used
> > > for our own xml parsing stuff it seems. Why don't we use the gnome
> > > libxml instead?
> > I'd rather keep load.c and save.c pretty dumb.
> So what would remain in them when we switch?
> > I'd like Glade to use libxml now, if someone wants to do that.
> I do want to do that. Not sure when I'll finish it though :(
> 
> > > While I'm suggesting clean-ups, Why don't we write a DTD for
> > > glade, and use libxml niceties like validation. And I don't mean
> > > write a DTD to match the current ad-hoc xml we output, but
> > > something that actually makes sense.
> > If someone wants to write a DTD for the current GTK+ and Gnome output
> > that would be handy.
> I _really_ think we want to reconsider the output format we currently
> have.
> 
> > I'd like to see it cleaned up a lot as well. But for the last few
> > months I've just been trying to get the Gnome stuff working well enough
> > to be useful.
> Which I think was a mistake to start on before some serious clean-up :)
> 
> Martijn
> 
> --
> Martijn van Beers  <[EMAIL PROTECTED]>
> 
> 'Don't worry if it sounds odd. Believe me, you are talking to
> someone who has seen a lot of stuff that is odd. And I don't
> mean biscuits.' --- Arthur Dent
> 
> +---------------------------------------------------------------------+
> To unsubscribe from this list, send a message to [EMAIL PROTECTED]
> with the line "unsubscribe glade-devel" in the body of the message.

Glade.dtd

Reply via email to