W3C home > Mailing lists > Public > www-svg@w3.org > May 2003

Re: [SVG] grid based layout DTD suggestion

From: Fred P. <fprog26@hotmail.com>
Date: Fri, 02 May 2003 00:15:03 -0400
To: thomas.deweese@kodak.com, tobiasreif@pinkjuice.com
Cc: www-svg@w3.org
Message-ID: <BAY2-F99R1zRL25AExg0000a552@hotmail.com>


 > <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.

===============

I think that the following is the simplest form possible:

<grid>
     <cell row='1' col='1' rowspan='2' colspan='2'>
        <use xlink:href='#background' x='0' y='0'/>
     </cell>
     <cell row='1' col='1'><rect.../></cell>
     <cell row='1' col='2'><rect.../></cell>
     <cell row='2' col='1'><rect.../></cell>
     <cell row='2' col='2'><rect.../></cell>
     <cell row='2' col='1' rowspan='2'><rect.../></cell>
</grid>

What you think?

Sincerely yours,
Fred.

_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*   
http://join.msn.com/?page=features/junkmail
Received on Friday, 2 May 2003 00:15:10 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:25 GMT