W3C home > Mailing lists > Public > public-html@w3.org > April 2007

brainstorm: lines and existing html-elements

From: Dmitry Turin <html60@narod.ru>
Date: Wed, 11 Apr 2007 13:22:39 +0300
Message-ID: <947032953.20070411132239@narod.ru>
To: public-html@w3.org

One people offer an ideas in some commands (they throw plates :) ),
and other people note defects of ideas (they underbid plates by handgun).
I try to do the first.

Now SVG exists.
But it's more comfortable to bind already existing html-elements by lines
for drafting a schemes, presentations.
Let's consider example:

<table>
  <tr>
    <td></td>
    <td>
      <table id="id1">
        <caption> Street      </caption>
        <tr><td>  idStreet    </td></tr>
        <tr><td>  idCity (FK) </td></tr>
        <tr><td>  name        </td></tr>
      </table>
    </td>
  </tr>
  <tr>
    <td>
      <table id="id2">
        <caption> City   </caption>
        <tr><td>  idCity </td></tr>
        <tr><td>  name   </td></tr>
      </table>
    </td>
    <td></td>
  </tr>
</table>

<line>
  <pack host="id1">
  <pack host="id2">
</line>

If you want to use several sections of broken line (for example, three sections),
you specifies coordinates of intermediate nodes in percents:

<line>
  <pack host="id1">
  <pack host="id2" dot="last">
  <ld x="0" y="0"></ld>
  <ld x="0" y="50%"></ld>
  <ld x="100%" y="50%"></ld>
  <ld x="100%" y="100%"></ld>
</line>

Thus new tags LINE, PACK, LD (line division) are necessary.

---

Other case, when you put html-object into node (LD is obligatory inside LINE)
and bind line to other html-object.
You specifies coordinates of nodes in em, pixels, etc:

<table id="id1">
  <caption> Street      </caption>
  <tr><td>  idStreet    </td></tr>
  <tr><td>  name        </td></tr>
</table>

<line>
  <pack host="id1">
  <ld></ld>
  <ld x="10em" y="10em">
    <table>
      <caption> StreetType  </caption>
      <tr><td>  idStreetType</td></tr>
      <tr><td>  name        </td></tr>       <!-- street, quay, etc -->
    </table>
  </ld>
</line>

or

<line>
  <pack host="id1">
  <ld></ld>
  <ld x="10em" y="0em"></ld>
  <ld x="10em" y="10em"></ld>
  <ld x="20em" y="10em">
    <table>
      <caption> StreetType  </caption>
      <tr><td>  idStreetType</td></tr>
      <tr><td>  name        </td></tr>       <!-- street, quay, etc -->
    </table>
  </ld>
</line>

Other example is to put <p></p> inside node, what is often during drawing presentations.

<line>
  <pack host="id1">
  <ld></ld>
  <ld x="30em" y="30em">
    <p>First text.</p>
    <p>Second text.</p>
  </ld>
</line>
Received on Wednesday, 11 April 2007 10:21:32 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:38:42 UTC