I'd like to get clarification on what are considered excessive divs. Here
is a sample of the XHTML output for the start of a chapter:
<div class="chapter" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title"><a id="tablechap"/>Chapter 1.
First</h2>
</div>
</div>
</div>
<div class="toc">
<p>
<b>Table of Contents</b>
</p>
<dl>
<dt>
<span class="section">
<a href="#Tables">Tables that are made up of
DocBook tables that
wrap and keep going a very long time
because its dumb and maybe
even more</a>
</span>
</dt>
<dd>
<dl>
<dt>
<span class="section">
<a href="#id643017">Formatting
tables</a>
</span>
</dt>
</dl>
</dd>
</dl>
</div>
<p>Testing several tables with some text.
...
To me, the only excessive divs are the two extra <div>s without class
attributes around the <h2> chapter title. The other divs with class
attributes can potentially serve CSS purposes, no?
Bob Stayton
Sagehill Enterprises
[email protected]
----- Original Message -----
From: "John Green" <[email protected]>
To: <[email protected]>
Cc: "Mauritz Jeanson" <[email protected]>
Sent: Friday, December 04, 2009 7:35 AM
Subject: Re: [docbook-apps] improve DocBook's HTML output
>And perhaps someone has an opinion on the claim that the current (X)HTML
output suffers from "div-itis" (excessive use of <div> elements). See
http://backtobase.wordpress.com/2007/06/20/docbook-is-not-making-my-life-easier/.
I would like to see unnecessary divs removed. Is there a purpose for them?
They make styling with CSS more difficult. For example, indenting the
first line of paragraphs except for the first paragraph of a chapter and a
paragraph right after a heading would be much easier without the divs in
between them in the HTML.
I am also in favour of improving the HTML code in general. Thanks all of
you for your efforts.
Thanks
John
--
John Green
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]