Re: [SVG] Experiment and proposal

Fred P. wrote:


> Can be resolve in XHTML easily:
> 
> <table border="0">
> <tr>
> <td>The</td><td>Cat</td>
> <td>Sat</td><td>On</td>
> <td>The</td><td>Mat</td>
> </tr>
> <tr>
> <td></td><td><img src="cat.png"/></td>
> <td></td><td>
> </td><td></td>
> <td><img src="mat.png"/></td>
> </tr>
> </table>
> 
> In SVG/XHTML it could look like this:
> 
> <table border="0" x="100" y="100" height="100" width="100">
> <tr>
> <td><text>The</text></td>
> <td><text>Cat</text></td>
> <td><text>Sat</text></td>
> <td><text>On</text></td>
> <td><text>The</text></td>
> <td><text>Mat</text></td>
> </tr>
> <tr>
> <td><text></text></td>
> <td><text><use link:href="#cat"/></text></td>
> <td><text></text></td>
> <td><text></text></td>
> <td><text></text></td>
> <td><text><use xlink:href="#mat"/></text></td>
> </tr>
> </table>
> 
> Image could scale inside a TABLE or for the matter
> it could scale inside a boundary image
> i.e. a rectangle, circle, triangle or weird form
> 
> That code would scale and FIX your problem easily.


Yes, a table-like/grid-based layout system would be quite useful in SVG.

But there's a difference between

(eg SVG2)

<grid>
<grid-row><!-- button --></grid-row>
<grid-row><!-- label --></grid-row>
</grid>

and (similiar to XHTML)

<table summary="'Monday' in English and German.">
<table-caption>A Day of the Week.</table-caption>
<table-row>
<table-header scope="column">English</table-header>
<table-header scope="column">German</table-header>
</table-row>
<table-row>
<table-cell>Monday</table-cell>
<table-cell>Montag</cell>
</table-row>
</table>

IMHO:

If there's layout to be done, then layout markup is to be used (not
table markup). For example SVG 1.2 or 2.0.

If there's tabular data (eg name of the weekdays in five languages),
then table markup is to be used, with all the features which were
designed to be used for tabular data, eg XHTML: table with attribute
summary, caption, tr, th, td, (both with attribute scope) etc.
See
http://www.w3.org/TR/SVG11/extend.html#ForeignObjectElement
http://www.w3.org/TR/SVG11/extend.html#AnExample
etc

This should help accessibility.

 > Table have been used since years to layout text,
 > why shall that change?
 > People are used to it.

I hoped we overcame the "tables work well for layout (of non-tabular
data)" strategy of abuse :)

Tobi


[*]
http://groups.yahoo.com/group/svg-developers/message/27776

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

Received on Saturday, 19 April 2003 03:53:13 UTC