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] 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
bobs@sagehill.net


----- Original Message ----- 
From: "Jacques" <jacques@foucry.net>
To: "docbook-apps" <docbook-apps@lists.oasis-open.org>
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.




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]