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

Re: [SVG] Experiment and proposal

From: Tobias Reif <tobiasreif@pinkjuice.com>
Date: Sat, 19 Apr 2003 09:52:30 +0200
Message-ID: <3EA1003E.8000801@pinkjuice.com>
To: www-svg@w3.org

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-row><!-- button --></grid-row>
<grid-row><!-- label --></grid-row>

and (similiar to XHTML)

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


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.

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 :)



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

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:46:55 UTC