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?



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 at lists dot oasis-open dot org For additional commands, e-mail: docbook-apps-help at lists dot oasis-open dot org







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