[whatwg] XSLT: HTML 5 --> HTML

Charles McCathieNevile chaals at opera.com
Fri Feb 9 04:58:03 PST 2007


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



More information about the whatwg mailing list