[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] improve DocBook's HTML output
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
bobs@sagehill.net
----- Original Message -----
From: "John Green" <jmg7439@rogers.com>
To: <docbook-apps@lists.oasis-open.org>
Cc: "Mauritz Jeanson" <mj@johanneberg.com>
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: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
>
>
>
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]