Re: XHTML2: Proposal for total separation of semantics from structure

On Tue, 2005-08-23 at 08:10 +0000, Junk Account wrote:
> But we still mix structure with semantic meaning.

This was discussed on this list about a year or so ago, and I am in
agreement with you.

Elements like <section>, <h>, <ul>, <li>, <p> and so forth are clearly
"structure" elements.

OTOH, there are some that are clearly a handful of "semantics" elements,
like <code>, <cite> and <nl>.

The semantic elements should be ditched in favour of an entirely
structural XHTML. A "semantics" attribute could be introduced though. 

e.g.:

	<pre semantics="code" class="perl">
	while(1)
	{
		print "Hello world!\n";
	}
	</pre>

	<div semantics="address">
		<l>123 Quux Street</l>
		<l>Foobar</l>
		<l>Anytown</l>
	</div>

	<ul>
		<li semantics="cite">The Vicar of Nibbleswick</li>
		<li src="witches_cover.jpeg"
		    semantics="cite">The Witches</li>
		<li href="http://amazon.com/foo/bar/00002134/view"
		    semantics="cite">Esiotrot</li>
	</ul>

-- 
Toby A Inkster BSc (Hons) ARCS
Contact Me  ~ http://tobyinkster.co.uk/contact

Received on Tuesday, 30 August 2005 04:59:17 UTC