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

Re: HTML heading hierarchy for XHTML

From: Marc Rubin, Jay's Island Software Development & Consulting <html-tidy@mail.com>
Date: Fri, 24 Mar 2000 11:45:41 -0600
To: html-tidy@w3c.org
Cc: "P. T. Rourke" <ptrourke@mediaone.net>, Jany Quintard <quintard.j@cgi.fr>
Message-ID: <OFDBFF74C6.360FAA38-ON86256878.005A0B57@rfdinc.com>

My goal is -automated- conversion of many existing HTML documents to XHTML,
while taking advantage of XML to structure the relationship among headings.
Nested headings are valid XML, but not XHTML: sorry, I should have caught
that... but Tidy appears to be the right tool for the job.

Both of the nested "div" suggestions work acceptably in w3c's Amaya browser
-- 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 incorporated
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>


<!-- Courtesy of Jany Quintard (modified) -->
  <p class="heading">First Order Heading</p>    <p class="heading">Second Order Heading</p>  </div>

I'd appreciate feedback on feasibility from anyone familiar with Tidy's
source code?

Received on Friday, 24 March 2000 13:14:39 UTC

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