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] | [Elist Home]


Subject: RE: DOCBOOK-APPS: How to customize localized text within the XSL-Stylesheets?



> 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&auml;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>




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


Powered by eList eXpress LLC