This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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: bobs@sco.com

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]