Re: [docbook-apps] customize generated text

From
Jacques <>
Date
2005-01-22T16:53:03+00:00
ID
r02010400-1037-0B28BD916C9611D9A3B2000A95C2BD80@[192.168.1.6]
Thread
Re: [docbook-apps] customize generated text
Le vendredi 21 janvier 2005, Bob Stayton disait :

>You are close.  By using the context="xref", you have changed the 
>generated
>text for cross references, but not for the title.  The chapter title is
>handled in the contexts with names "title", "title-numbered" and
>"title-unnumbered" in the gentext files.

Hum... Ok, I found that in common/fr.xsl

So I've changed the xref with title* but there is no change, chapter
stay Chapitre in french. :-(

This is my custom-layer file :

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
    <xsl:import
href="file:///Users/jacques/Applications/eclipse/plugins/com.oxygenxml.
editor_5.1.0/frameworks/docbook/xsl/fo/docbook.xsl"/>
    <xsl:param name="local.l10n.xml" select="document('')"/>
        <l:i8n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">
        <l:l10n language="fr">
            <l:context name="title">
                <l:template name="chapter"
                    text="Article - %n &#8220;%t&#8821;"/>
            </l:context>
            <l:context name="title-numbered">
                <l:template name="chapter"
                    text="Article - %n &#8220;%t&#8821;"/>
            </l:context>
            <l:context name="title-unnumber">
                <l:template name="chapter" text="Article"/>
            </l:context>
        </l:l10n>
    </l:i8n>
    <xsl:param name="paper.type">A4</xsl:param>
</xsl:stylesheet>


Jacques
-- 
War is over, if you want it.