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] Debugging gentext customizations


On Fri, Apr 04, 2003 at 11:34:26PM -0600, Darren Richmond wrote:
> I'm trying to change the text of cross-references to docbook sections from
> the default cross-reference text 'Section , "Section Title"' to 'the section
> "Section Title"'.
> 
> I've got a customization layer for FO that works fine for lots of other
> customizations (params, attributes). I've added the following code to the
> customization layer:
> 
> <xsl:param name="local.l10n.xml" select="document('')"/>
> <l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">
>   <l:l10n language="en">
>     <l:context name="xref">
>       <l:template name="sect1" text="the section &#8220;%t&#8221;"/>
>       <l:template name="sect2" text="the section &#8220;%t&#8221;"/>
>       <l:template name="sect3" text="the section &#8220;%t&#8221;"/>
>       <l:template name="sect4" text="the section &#8220;%t&#8221;"/>
>       <l:template name="sect5" text="the section &#8220;%t&#8221;"/>
>       <l:template name="section" text="the section &#8220;%t&#8221;"/>
>       <l:template name="Section" text="the section &#8220;%t&#8221;"/>
>     </l:context>
>   </l:l10n>
> </l:i18n>
> 
> However, I keep getting the same default text. What's the best way to debug
> this?

There are several gentext contexts for section xrefs now.
If you look in the en.xml gentext file, you will see
more below context="xref".  Here is the order 
in which one is selected for sections (in version 1.60.1):

context="xref-number-and-title" is used when the
stylesheet parameter xref.with.number.and.title
is set to 1 (the default).  

context="section-xref-numbered" is used when that
parameter is off and the section.autolabel parameter
is on.

context="section-xref" is used otherwise.

So for sections, the context="xref" is never used at all.

If you rename your context "section-xref" and
set the xref.with.number.and.title parameter to zero,
then your customization should work.

-- 

Bob Stayton                                 400 Encinal Street
Publications Architect                      Santa Cruz, CA  95060
Technical Publications                      voice: (831) 427-7796
The SCO Group                               fax:   (831) 429-1887
                                            email: bobs@sco.com


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