W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2000

Re: HTML heading hierarchy for XHTML

From: Jany Quintard <quintard.j@cgi.fr>
Date: Fri, 24 Mar 2000 11:45:41 -0600
To: html-tidy@w3c.org
Message-ID: <OF7B8D4A98.AA6C857C-ON86256878.005BE432@rfdinc.com>

On Tue, 1 Feb 2000, Marc Rubin, Jay's Island Software Development &
Consulting wrote:

> My goal is -automated- conversion of many existing HTML documents to
> .../...
> that... but Tidy appears to be the right tool for the job.
> Both of the nested "div" suggestions work acceptably in w3c's Amaya
> -- thanks for the feedback. Conversion to "name"ed divs seems more direct
> than "class"ified paragraphs, but I may be missing some other advantage.
> The question now is whether either of these solutions could be
> into Tidy as an option?:
> <!-- Courtesy of P. T. Rourke -->
> <div name="sec1"><h1>First Order Heading</h1>="sec1.1"><h2>Second Order Heading</h2>> </div>
The problem here is that (if as Jelks Cabaniss said) name is ID, the
structure of the file is not easy to modify, because, when you add a
division somewhere, all IDs after it have to be modified.

> or
> <!-- Courtesy of Jany Quintard (modified) -->
> <div>
>   <p class="heading">First Order Heading</p>>     <p class="heading">Second Order Heading</p>>   </div>
> </div>
> I'd appreciate feedback on feasibility from anyone familiar with Tidy's
> source code?
I am not familiar with Tidy code :-(
I prefer the second solution because it is a way to get rid of hn
elements which IMO are not needed. What we should need in
well-structured HTML would be a <divtitle> element (But this is my
preussian-psycho-rigid view of SGML/XML languages). Actually, hn are
useful shortcuts, but the purity of the model suffers from them.
And the XHTML DTDs do *not* have any divtitle element.

The tools to make the transformation is *not* Tidy, but some SGML tool
(like OpenJade for example, but there must be others).

Received on Friday, 24 March 2000 13:15:02 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:47 UTC