OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook-apps] Extra title generated for revhistory

In your customization, you are not using titlepage.mode to process the title.  So you should be able to make that an empty template:
<xsl:template match="d:revhistory/d:title" mode="titlepage.mode"/>
Bob Stayton
Sagehill Enterprises

From: Xmplar
Sent: Wednesday, January 30, 2013 9:56 PM
Subject: [docbook-apps] Extra title generated for revhistory

I have a customization to select either the gentext key or <title> content for <revhistory>. When it's the latter, an additional title is generated after the table head in HTML5, viz:

<div class="revhistory"><table
                style="border-style:solid; width:100%;" class="revhistorytbl">
                  <th style="align: left; valign: top;" colspan="4">Revision history (this
                <h1 class="title">Revision history (this book)</h1>
                  <td style="align: left; width: 25%;">Revision 1</td>

Part of the customization of <xsl:template match="d:revhistory" mode="titlepage.mode"> is:
<xsl:variable name="title">
        <xsl:when test="d:title">
          <xsl:value-of select="d:title"/>
          <!--<xsl:apply-templates select="d:title|d:info/d:title" mode="titlepage.mode"/>-->
          <xsl:call-template name="gentext">
            <xsl:with-param name="key" select="'RevHistory'"/>
      <!--<xsl:call-template name="gentext">
        <xsl:with-param name="key">RevHistory</xsl:with-param>
    <xsl:variable name="contents">
        <xsl:apply-templates select="." mode="common.html.attributes"/>
        <xsl:call-template name="id.attribute"/>
          <!--remove hardcoded style + add class attrib ***works 19/1/13-->
          <!--<xsl:if test="$css.decoration != 0">
            <xsl:attribute name="style">
              <xsl:text>border-style:solid; width:100%;</xsl:text>
          <xsl:attribute name="class">
            <xsl:value-of select="'revhistorytbl'"/>
          <!-- include summary attribute if not HTML5 -->
          <xsl:if test="$div.element != 'section'">
            <xsl:attribute name="summary">
              <xsl:call-template name="gentext">
                <xsl:with-param name="key">revhistory</xsl:with-param>
            <!--HTML5 attrs added to th 19/1/13-->
            <th style="align: {$direction.align.start}; valign: top;" colspan="{$numcols}">
              <xsl:copy-of select="$title"/>
              <!--<strong xmlns:xslo="http://www.w3.org/1999/XSL/Transform">
                <xsl:call-template name="gentext">
                  <xsl:with-param name="key" select="'RevHistory'"/>
          <xsl:apply-templates mode="titlepage.mode">
            <xsl:with-param name="numcols" select="$numcols"/>

So the second title is generated by the <xsl:apply-templates mode="titlepage.mode">. How can I "exclude" the second title?

Dave Gardiner

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]