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?



Hi Stephane,
you can add something like this to your adaption layer to overwrite the 
default values:

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

Stephan


Stephane Bortzmeyer wrote:

>I'm using DocBook XSL stylesheets to produce HTML and I would like to change just a
>name used in the navigation (replacing Home by TableOfContents because
>it is not the real home page).
>
>I can find nothing in the documentation. Of course, I can edit
>common/en.xml but I'm looking for a cleaner solution, some variable I
>can add in my stylesheet driver, something like:
>
><gentext key="nav-home" text="Table Of Contents"/> 
>
>but I cannot find what to add. Reading the source only convinced me
>that I'm not a XSL guru yet.
>
>
>---------------------------------------------------------------------
>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]