This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] customize generated text
- From: Jacques <jacques at foucry dot net>
- To: docbook-apps <docbook-apps at lists dot oasis-open dot org>
- Date: Sat, 22 Jan 2005 17:52:46 +0100
- 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 “%t≵"/>
</l:context>
<l:context name="title-numbered">
<l:template name="chapter"
text="Article - %n “%t≵"/>
</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.