Re: [SVG] grid based layout DTD suggestion

Fred P. wrote:

 > In this case, no since it's (row,col) not (row,cell).

But what you marked up (in your example) looked more like wanting to be 
marked up as row/cell. AFAICS you marked up cells as columns. The 
"grid-col"s contained text and use elements; they are compartments / 
cells, not columns. Instead, in grids like your example, groups of cells 
automatically form columns.

 > Do you prefer a free ad hoc definition for grids?

I don't know what you mean here.

 > <grid>
 >  <grid-rows><grid-col></grid-col></grid-rows>
 > </grid>
 >
 > OR
 >
 > <grid>
 >  <grid-cols><grid-row></grid-row></grid-cols>
 > </grid>
 >
 > OR
 >
 > <grid>
 >  <grid-cell row='1' col='2'></grid-cell>
 > </grid>
 > -->

I think I'd prefer s.th. simple, like

<grid>
   <row>
     <cell><rect.../></cell>
     <cell><rect.../></cell>
   </row>
   <row>
     <cell><rect.../></cell>
     <cell><rect.../></cell>
   </row>
</grid>

<grid>
   <col>
     <cell><rect.../></cell>
     <cell><rect.../></cell>
   </col>
   <col>
     <cell><rect.../></cell>
     <cell><rect.../></cell>
   </col>
</grid>

(naming: "row" or "grid-row", "col" or "grid-col", "cell" or "grid-cell")

plus span, perhaps plus s.th. like 'draggable="true"' and 'flow="true"', 
to allow for repositioning of UI elements and groups (eg rows), as in 
webDraw etc

 > Any body else as interesting ideas?

Looking at GUI toolkits is probably helpful. XUL etc etc.

Tobi

-- 
http://www.pinkjuice.com/

Received on Thursday, 1 May 2003 06:35:01 UTC