[Y-devel] comment: XML interface description
Mikko Rantalainen mira at cc.jyu.fi
Thu Feb 26 14:57:19 GMT 2004
Ben Farrell <benfarrell at zoom.co.uk> wrote:
> good idea, I also have a few things to add to this:
>
> 1) Could be a good idea to define a common message catalog with common
> strings like 'OK' 'Cancel' 'Exit' (etc..) and reference them a 'hash'
> (or what ever) to say you want the to use the common catalog (this
> could be stored on the Y-Server side in a separate library). An example:
>
> <y:label id="2" message="#1" />
If we're going to use XML, XHTML or HTML for UI descriptions, then I
think we should use entities for all the static strings. Strings
could be defined in a DTD file and you just write
<y:label id="exit_button_2">&exit;</y:label>
Easy enough and a standard way of doing things too.
I'd really like user interface design with XHTML and CSS so that I
just bind real code to components via element ids or even through
XLink. Modifying user interface would be a piece of cake and it
would be nicely separated from actual code. It should be pretty
bandwidth friendly too, but the implementation would be far from
easy. If this seems the correct way, I think we should check how XUL
works.
--
Mikko
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved