This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] [XSL] Changing the names used for navigation?
- From: Bob Stayton <bobs at sco dot com>
- To: Stephane Bortzmeyer <bortzmeyer at nic dot fr>
- Cc: Stephan Wiesner <stephan at stephan-wiesner dot de>,docbook-apps at lists dot oasis-open dot org
- Date: Wed, 9 Apr 2003 09:37:20 -0700
- Subject: Re: [docbook-apps] [XSL] Changing the names used for navigation?
- References: <20030328111608.GA22589@nic.fr> <3E843207.2000809@stephan-wiesner.de> <20030409135615.GA32417@nic.fr>
On Wed, Apr 09, 2003 at 03:56:15PM +0200, Stephane Bortzmeyer wrote:
> On Fri, Mar 28, 2003 at 12:29:11PM +0100,
> Stephan Wiesner <stephan at stephan-wiesner dot de> wrote
> a message of 56 lines which said:
>
> > you can add something like this to your adaption layer to overwrite the
> > default values:
>
> Well, the following code is accepted but changes nothing to the labels.
>
> > <xsl:param name="local.l10n.xml" select="document('')" />
> > <l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">
> > <l:l10n language="de">
> > <l:context name="xref">
> > <l:template name="figure" text="Abbildung %n. %t"/>
> > <l:template name="table" text="Tabelle %n. %t"/>
> > </l:context>
> > </l:l10n>
> > <l:l10n language="en">
> > <l:context name="xref">
> > <l:template name="figure" text="Figure %n. %t"/>
> > <l:template name="table" text="Table %n. %t"/>
> > </l:context>
> > </l:l10n>
> >
> >
> >
> > </l:i18n>
The items you want to change are l:gentext elements
as your original mail mentioned,
and they are not in within a context in that file.
So something like this in your customization layer:
<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="nav-home" text="Table of Contents"/>
</l:l10n>
</l:i18n>
</xsl:param>
When the stylesheets are looking up gentext items,
they consult $local.l10n.xml first, and then
the language gentext file en.xml.
--
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 at sco dot com
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe at lists dot oasis-open dot org
For additional commands, e-mail: docbook-apps-help at lists dot oasis-open dot org