docbook-apps

Re: [docbook-apps] customizing revhistory

  • 1.  Re: [docbook-apps] customizing revhistory

    Posted 10-18-2006 16:45
    Hi Sam,
    A revhistory element can appear in *info elements for title pages as well
    as in ordinary content. As such, it has more than one mode for processing.
    If this is for a titlepage, then you need to customize it in
    mode="titlepage.mode". Take a look in html/titlepage.xsl for templates
    like these:

    <xsl:template match="revhistory/revision" mode="titlepage.mode">

    You can add the span there, or in the more specific templates called for
    each child element.

    You can change the label text using the gentext mechanism, so it can be
    customized for all languages if needed:

    <xsl:param name="local.l10n.xml" select="document('')"/>
    <l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">
    <l:l10n language="en">
    <l:gentext key="RevHistory" text="CLISP release history"/>
    <l:gentext key="revhistory" text="CLISP release history"/>
    <l:gentext key="Revision" text="Release"/>
    <l:gentext key="revision" text="Release"/>
    </l:l10n>
    </l:i18n>

    I can never remember whether the uppercase or lowercase key name is used,
    so I always just customize both to be sure.

    Bob Stayton
    Sagehill Enterprises
    DocBook Consulting
    bobs@sagehill.net