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

Subject: Re: [docbook-apps] customize generated text

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.

Bob Stayton
Sagehill Enterprises
DocBook Consulting

----- Original Message ----- 
From: "Jacques" <jacques@foucry.net>
To: "docbook-apps" <docbook-apps@lists.oasis-open.org>
Sent: Thursday, January 20, 2005 12:50 AM
Subject: [docbook-apps] customize generated text


I've read with attention the chapter 8 of the Bob's book about
customization methods.

I think I interstood how to change for example the generated text
"Chapter" into "Article", but it doesn't work.

I made my customization layer like that :

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";

    <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="xref">
                <l:template name="chapter"
                    text="Article %n: &#8220;%t&#8821;"/>
            <l:context name="xref-number">
                <l:template name="chapter"
                    text="Article %n: &#8220;%t&#8821;"/>
            <l:context name="xref-number-and-title">
                <l:template name="chapter"
                    text="Article %n: &#8220;%t&#8821;"/>
    <xsl:param name="paper.type">A4</xsl:param>

And my docbook file look's like

<book language="fr">
    <title>My title</title>
        <title>The first article</title>
            <para>blah blah blah</para>

My customization layer is called because my result PDF is a A4 page
size, but the word before the chapter title still "Chapitre".

I miss something, but what ?

Thanks in advance,
Il n'y a d'autre enfer pour l'homme que la bêtise ou la méchanceté de ses
                               Marquis de Sade

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