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] [XSL] Changing the names used for navigation?


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@stephan-wiesner.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&#160;%n.&#160;%t"/>
> >         <l:template name="table" text="Tabelle&#160;%n.&#160;%t"/>
> >      </l:context>   
> >  </l:l10n>
> >  <l:l10n language="en">
> >      <l:context name="xref">
> >         <l:template name="figure" text="Figure&#160;%n.&#160;%t"/>
> >         <l:template name="table" text="Table&#160;%n.&#160;%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@sco.com


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