This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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 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&#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 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]