Re: SwiXML for prototyping: table data

[email protected] Wed, 23 Feb 2005 09:27:01 +0100
Newsgroups gmane.comp.embedded.carlsbad-cubes
Organization http://freemail.web.de/
Message-ID <[email protected]>
List for Users of Carlsbad Cubes' Technologies and Products <[email protected]> schrieb am 22.02.05 23:05:02:
> As far as I can tell, table headers and data can't be specified directly in
> SwiXML.  If I'm wrong about this, please correct me.

You are right there. Content in an MVC environment is usually specified
in a model, so you may specify a model for your data.

>  Assuming that they
> can't be specified, I would like to propose the following syntax for
> specifying the contents of a table: 
>  
> <table>
>     <header size="2">
>         <label text="Name"/>
>         <label text="Present">
>     </header>
>     <data size="(10,2)">
>         <label text="Alan"/>    <checkbox/>
>         <label text="Beth"/>    <checkbox/>
>         <label text="Charlie"/> <checkbox/>
>         <label text="Della"/>   <checkbox/>
>         <label text="Ethan"/>   <checkbox/>
>         <label text="Fran"/>    <checkbox/>
>         <label text="George"/>  <checkbox/>
>         <label text="Hannah"/>  <checkbox/>
>         <label text="Jim"/>     <checkbox/>
>         <label text="Kathy"/>   <checkbox/>
>     </data>
> </table>


You are talking about content but write UI elements, thus mixing
data and its representation. An working idea might be a table model
specifying the type of each cell or at least column. With more powerful
converters there is a chance to convert the written XML in a working
table model. 

Frank