- From: Tobias Reif <tobiasreif@pinkjuice.com>
- Date: Wed, 30 Apr 2003 12:13:27 +0200
- To: www-svg@w3.org
Fred P. wrote: [snippet] (just two quick points) 1. Your example uses grid-col for cells/compartments, not columns. > <!ELEMENT grid (grid-row*) > <!ELEMENT grid-row (grid-col*) > > <!ELEMENT grid-col (#PCDATA|use|g|text|rect|circle|grid)* > > <!-- Example --> > <grid> > <grid-row> > <!-- The (x,y) coordinates are offset to the table (0,0) > top-left > corner > if ( x < 0 ) x = 0; > if ( y < 0 ) y = 0; > --> > <grid-col> > <text style='font:arial; font-size:48pt; > text-rendering:normal;' > x='10' y='10'>Cat</text> > </grid-col> > <grid-col> > <text style='font:arial; font-size:48pt; > text-rendering:normal;' > x='10' y='10'>Mat</text> > </grid-col> > </grid-row> Shouldn't your grid-col be named grid-cell? eg <!ELEMENT grid (grid-row*) <!ELEMENT grid-row (grid-cell*)> <!ELEMENT grid-cell %some_permissive_content_model;> or <!ELEMENT grid (grid-row*|grid-col*) <!ELEMENT grid-row (grid-cell*)> <!ELEMENT grid-col (grid-cell*)> <!ELEMENT grid-cell %some_permissive_content_model;> 2. Why allow rect, but not circle and ellipse? A grid-cell might share the content model with g, for example. Tobi -- http://www.pinkjuice.com/
Received on Wednesday, 30 April 2003 06:14:29 UTC