glade-rnc

RELAX NG schemas for Glade files
git clone https://logand.com/git/glade-rnc.git/
Log | Files | Refs | README

gtkbuilder.rnc (1046B)


      1 # RELAX NG schema for the newest glade file format.
      2 # Written by Tomas Hlavaty <tom at logand.com>
      3 # Based on DTD from
      4 # http://library.gnome.org/devel/gtk/unstable/GtkBuilder.html#BUILDER-UI
      5 start = element interface {
      6    attribute domain { text }?,
      7    element requires {
      8       attribute lib { text },
      9       attribute version { text }
     10    }?,
     11    object?
     12 }
     13 object = element object {
     14    attribute id { text },
     15    attribute class { text },
     16    attribute type-func { text }?,
     17    attribute constructor { text }?,
     18    element property {
     19       attribute name { text },
     20       attribute translatable { text }?,
     21       attribute comments { text }?,
     22       attribute context { text }?,
     23       text
     24    }*,
     25    element signal {
     26       attribute name { text },
     27       attribute handler { text },
     28       attribute after { text }?,
     29       attribute swapped { text }?,
     30       attribute object { text }?,
     31       attribute last_modification_time { text }?
     32    }*,
     33    element child {
     34       attribute type { text }?,
     35       attribute internal-child { text }?,
     36       object
     37    }?
     38 }