Question about introspect.dtd?

Thiago Macieira thiago at kde.org
Fri Oct 17 04:09:39 PDT 2008


On Friday 17 October 2008 12:00:11 Markku Savela wrote:
> Looking at
>
>   http://standards.freedesktop.org/dbus/1.0/introspect.dtd
>
> it has a line
>
>   <!ELEMENT interface (annotation*,method*,signal*,property*)>
>
> which means that in interface the subelements must appear in the
> listed order, you cannot write any <method> definitions after a
> <signal>. Why not be a bit more lenient, and write the above rule as
>
>   <!ELEMENT interface (annotation*,(method | signal)*,property*)>
> or
>   <!ELEMENT interface (annotation*,(method | signal | property)*)>
>
> allowing writing method and signal in any order?
>
> [I noticed this, because I was handed a bunch of hand written
> annotated introspect files, which didn't pass the DTD check due to
> member/signal ordering]

Forget the DTD. DTD simply can't represent the XML format we want to enforce.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Software Engineer - Nokia, Qt Software
  Qt Software is hiring - ask me
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freedesktop.org/archives/dbus/attachments/20081017/7b0f7219/attachment.pgp 


More information about the dbus mailing list