W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2007

[whatwg] XSLT: HTML 5 --> HTML

From: Charles McCathieNevile <chaals@opera.com>
Date: Fri, 09 Feb 2007 18:28:03 +0530
Message-ID: <op.tnhfm1s7wxe0ny@widsith.local>
On Fri, 09 Feb 2007 18:12:58 +0530, Jorgen Horstink <mail at jorgenhorstink.nl> 
wrote:

> I understand the issue, but why not using some sort of semantic
> binding between Hx's and the list? Is there some sort of Semantic
> Binding Language somewhere out there? I've never got the point of the
> for attribute. That seems to me some sort of basic semantic binding.
> There are actually other use cases of binding different elements
> semanticly together. One can say grouping the Hx and List within a
> DIV element would do just fine, but i do not agree. For example; it
> would be useful to bind a list item from the index to the actual
> section. You get my point? This is just some vague idea... I don't
> know if such a language actually is needed, but how about broaden the
> scope of the for attribute ?
>
> <h4 for="myList">some title</h4>
> <ul id="myList">
> <li>foo
> <li>bar
> </ul>

for is meant to work like that, although currently only for the label element.

A simple alternative would be to make the content model for lists be (hX)?(li)*, 
no?

cheers

Chaals

-- 
Charles McCathieNevile, Opera Software: Standards Group
hablo espa?ol - je parle fran?ais - jeg l?rer norsk
chaals at opera.com Try Opera 9.1 http://opera.com
Received on Friday, 9 February 2007 04:58:03 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:32 UTC