Re: swiXml and CSS

Gerald Bauer <[email protected]>
Newsgroups gmane.comp.embedded.carlsbad-cubes
Message-ID <[email protected]>
Hello Kate,

> ok after reading a little and thinking a bit about
> this whole xml+css thing
> it seems to me that, while a nifty idea it would be
> a significant 
> defarture from the basic swixml philosophy which is
> to use XML to hook 
> into the predefined functions of an object via
> reflection.
> 
> Additionally all the things that you want to set
> (stylewise or whatever) 
> can already be set. Want to specify a Font on a
> JLabel? use the font 
> attribute. Color? use the Foreground attribute... 
> etc...
> 
> If you can't set it already you need to write a
> custom object and custom 
> tags and it's probably a safe bet that any default
> css parser wouldn't 
> handle that tag correctly.

   The point of CSS is to separate styling from
structure. And also note that CSS allows you to set
style properties using rules (that is, setting many
tags at once) instead of "hard-coding" every single
tag with its own style properties.

  Also note that Microsoft's all-in-one XAML format
that basically follows the SwiXML philosophy of being
"just a XML wire format and that's it" also includes a
CSS-like stylesheet format. 

  - Gerald

______________________________________________________________________ 
Post your free ad now! http://personals.yahoo.ca
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.