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: Re: chunking problem


On Wed, Nov 06, 2002 at 09:22:18AM +1100, Con Validas wrote:
> Hello Dennis and list,
> 
> When chunking an article using xsltproc, I have the
> header of each HTML page change to match the id of the
> sect tag. How do I have each HTML page display the
> article heading in the header instead?

If you want to change just the section title to the article
title, while keeping the navigational links in the header,
then you'll have to copy the 'header.navigation'
template in html/chunk-common.xsl to your customization layer,
and change one line:

  .
  .
  .
  <xsl:if test="$suppress.navigation = '0' and
                $suppress.header.navigation = '0' ">
    <div class="navheader">
      <xsl:if test="$row1 or $row2">
        <table width="100%" summary="Navigation header">
          <xsl:if test="$row1">
            <tr>
              <th colspan="3" align="center">
                <xsl:apply-templates select="." mode="object.title.markup"/>

Replace that last line with:

 <xsl:apply-templates select="ancestor-or-self::article" mode="object.title.markup"/>

This customization will only work for articles, though.

Bob Stayton                                 400 Encinal Street
Publications Architect                      Santa Cruz, CA  95060
Technical Publications                      voice: (831) 427-7796
Caldera International, Inc.                 fax:   (831) 429-1887
                                            email: bobs@caldera.com


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