Next in thread → Next in month →

Re: [docbook-apps] Extra <div> under headings in chunked

From
Cob Rtayton
Date
2003-05-09T03:24:12+00:00
ID
Thread
Re: [docbook-apps] Extra <div> under headings in chunked
On Thu, May 08, 2003 at 09:04:55PM -0500, David Pratt wrote:
> I am chunking xhtml output using 1.60.1 and now 1.61.0 and get an 
> extra set of <div> just following each heading. 
> 
> This occurs in both xhtml or html versions using the chunk.xsl 
> 
> I have been through the sections.xsl where this all seems to be 
> occuring but can't identify the source of the extra element to correct 
> this in a customization. 
> 
> Assistance appreciated. 
> 
> The output looks like this: 
> 
>               <div class="titlepage"> 
>                 <div> 
>                   <div> 
>                     <h3 class="title"><a 
> id="id520476"></a>2.1.1. Overview of Chapter 2</h3> 
>                   </div> 
>                 </div> 
>                 <div></div>  <-- this is the element set I want to 
> remove 
>               </div> 
> 

The titlepages are driven by the templates
in titlepage.templates.xsl.  In this case:

<xsl:template name="section.titlepage">
  <div class="titlepage">
    <div>
    <xsl:call-template name="section.titlepage.before.recto"/>
    <xsl:call-template name="section.titlepage.recto"/>
    </div>
    <div>
    <xsl:call-template name="section.titlepage.before.verso"/>
    <xsl:call-template name="section.titlepage.verso"/>
    </div>
    <xsl:call-template name="section.titlepage.separator"/>
  </div>
</xsl:template>

The empty div is the 'verso' processing, which is
generally useless in HTML processing since there are
no page sides.  But it does add an empty div.

Bob Stayton                                 400 Encinal Street
Publications Architect                      Santa Cruz, CA  95060
Technical Publications                      voice: (831) 427-7796
The SCO Group                               fax:   (831) 429-1887
                                            email: 
Next in thread → Next in month →