This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
RE: How to customize localized text within the XSL-Stylesheets?
- To: docbook-apps at lists dot oasis-open dot org
- Subject: RE: DOCBOOK-APPS: How to customize localized text within the XSL-Stylesheets?
- From: "Bradford, Denis" <denisb at rational dot com>
- Date: Mon, 29 Oct 2001 15:52:30 -0500
- List-Id: <docbook-apps.lists.oasis-open.org>
> Put something like this in your XSL customization file:
>
> <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:gentext key="nav-next" text="Nächste Seite"/>
> <!-- other customizations here -->
> </l:l10n>
> </l:i18n>
>
Very nice. I was afraid I'd have to modify entire context blocks, which are
more complicated than the gentext example above. But apparently you can
isolate individual templates in context, as below:
<!--
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- customizations to common\I10n.xsl
Remove inappropriate generated text for chapters, section
-->
<!--
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<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="revision" text="Version"/>
<l:gentext key="Revision" text="Version"/>
<l:context name="title">
<l:template name="chapter" text="%t"/>
</l:context>
<l:context name="xref">
<l:template name="chapter" text="%t"/>
</l:context>
<l:context name="section-xref">
<l:template name="section" text="%t"/>
</l:context>
</l:l10n>
</l:i18n>
----------------------------------------------------------------
To subscribe or unsubscribe from this elist use the subscription
manager: <http://lists.oasis-open.org/ob/adm.pl>