[PATCH] Spec update & schemas for Introspection XML format

Daniel P. Berrange dan at berrange.com
Tue Jan 3 06:51:25 PST 2006

On Fri, Dec 30, 2005 at 10:49:03AM -0500, Havoc Pennington wrote:
> On Thu, 2005-12-29 at 14:51 +0000, Daniel P. Berrange wrote:
> > The DBus spec still says 
> >  
> >   "A more formal DTD and spec needs writing, but here are some quick notes." 
> > 
> > David Wheeler previously contributed a DTD, however, DTDs are a very
> > limited format not able to express all the finer points of the data
> > format used for introspection data. Thus I am attaching a patch which
> > provides a W3C schema, and Relax NG schema (both XML & compact form).
> > The patch also modifies the spec to remove the outdated note above,
> > and instead link to the available DTD & schemas. 
> > 
> Thanks, this seems like a good update. I don't know any of these formats
> so if you want to commit we'll take your word for it ;-)

I would, but I don't have commit privileges :-)

> Maybe we should designate one of them the "official" schema? It seems
> inevitable that the set of valid documents is slightly different around
> the edges for the different kinds of schema, no?

Yes, W3C Schema / RelaxNG are a much richer language, allowing for more
precise definition of data format than DTD, so the set of documents 
accepted by these two should be a sub-set of those accepted by the DTD.
There's not much to choose between W3C schema / RelaxNG in terms of
expressivity, so I'd designate W3C schema the 'official' one, if only
because I'm more familiar with that format. Validation support for W3C
schema is also more likely be built into XML parsers, than for RelaxNG

|=-            GPG key: http://www.berrange.com/~dan/gpgkey.txt       -=|
|=-       Perl modules: http://search.cpan.org/~danberr/              -=|
|=-           Projects: http://freshmeat.net/~danielpb/               -=|
|=-   berrange at redhat.com  -  Daniel Berrange  -  dan at berrange.com    -=|

More information about the dbus mailing list