W3C home > Mailing lists > Public > www-tag@w3.org > October 2002

Enhance XLink: infer xlink:type

From: Tim Bray <tbray@textuality.com>
Date: Fri, 04 Oct 2002 08:46:08 -0700
Message-ID: <3D9DB7C0.5060706@textuality.com>
To: WWW-Tag <www-tag@w3.org>

Obviously people feel XLink has too much syntax, and I'm pretty well 
convinced that they're right.  How about the following:

Make xlink:type inferrable from xlink:href as follows:

If an element has xlink:href=, then
- If its parent element has
   xlink:type="extended", infer xlink:type="locator"
- Otherwise infer xlink:type="simple"

Hey-presto, minimal simple xlinks are now
<foo xlink:href="bar">foo</foo> - no defaulting required!  Of course you 
could still put in xlink:title and other good stuff if you wanted.

Minimal extended xlinks become

<parent xlink:type="extended">
   <child xlink:href="audio.wav"/>
   <child xlink:href="text.html"/>
   <child xlink:href="vidio.mov"/>
   </parent>

  -Tim
Received on Friday, 4 October 2002 11:46:09 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:47:12 GMT