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] customizing revhistory

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"/>

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

----- Original Message ----- 
From: "Sam Steingold" <sds@gnu.org>
To: <docbook-apps@lists.oasis-open.org>
Sent: Tuesday, October 17, 2006 9:08 PM
Subject: [docbook-apps] customizing revhistory

> Hi,
> I want to use bookinfo/revhistory to record the software revision
> history, _not_ the documentation revision history.
> Thus I tried to replace the hard coded title "Revision History" with
> a something more appropriate:
> <xsl:param name="RevHistory" select="'CLISP release history'"/>
> This setting is ignored (little surprise, RevHistory is not mentioned in
> the param.xml - please make it customizable).
> Then I tried to make the revision number and date colorable from CSS.
> I tried
> <xsl:template match="revision/revnumber">
> <span class="revnumber"><xsl:apply-imports/></span>
> </xsl:template>
> <xsl:template match="revision/date">
> <span class="revdate"><xsl:apply-imports/></span>
> </xsl:template>
> both with and without "revision/" - it appears to change nothing.
> Also, I do not like it that "<revnumber>2.2</revnumber>" is rendered as
> "Revision 2.2", I want to see "Release 2.2".
> So, my questions are:
> 1. How do I replace "Revision History" with something else?
> 2. How do I replace "Revision" with something else?
> 3. How do I make the output of revision/revnumber and revision/date
>   wrapped in a <span> so that I can use CSS to customize their
>   appearances?
> Thanks!
> -- 
> Sam Steingold (http://www.podval.org/~sds) on Fedora Core release 5 
> (Bordeaux)
> http://dhimmi.com http://israelnorthblog.livejournal.com
> http://truepeace.org http://israelunderattack.slide.com
> Save the whales, feed the hungry, free the mallocs.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org

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