Next in thread → Next in month →

Re: [docbook-apps] customize generated text

From
Bob Stayton <>
Date
2005-01-22T17:29:28+00:00
ID
0a0501c500a7$e84c7370$6400a8c0@toshiro
Thread
Re: [docbook-apps] customize generated text
You have a typo in your customization.  The element is l:i18n, not l:i8n (a
one is missing).

Bob Stayton
Sagehill Enterprises
DocBook Consulting



----- Original Message ----- 
From: "Jacques" <>
To: "docbook-apps" <>
Sent: Saturday, January 22, 2005 8:52 AM
Subject: 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.
Next in thread → Next in month →