[Xcb] bind from XML (was: Objective-C binding)

Barton C Massey bart at cs.pdx.edu
Sat May 13 11:48:37 PDT 2006

In message <20060513183519.GC4231 at id.minilop.net> you wrote:
> > (IMHO attributes are often more easy to parse than PCData,
> > it's only a personal point of view, maybe not shared with other peoples.)
> I see your point regarding SAX. However, XPath, and by extension XSLT,
> make attributes and elements equally easy to use. In this case I find
> the element style more readable and less confusing. I don't know: if we
> bother implementing this extended description at all, I'd consider
> either style.

The semantics get really confusing if you use attributes for
this: you really want nesting IMHO.  I'd suggest

  <specialfield name="child" type="WINDOW">
    <const name="NoWindow">0</const>

or the like.  The type would, of course, have to be enough to
make all the consts legal values of it.  Would this work, or
am I confused as usual?


More information about the Xcb mailing list