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: References to section don't contain a title?


Hi Dennis,
thanks, that works fine, though I have to adapt it for all languages...

I looked at en.xml, there the section is defined as:
<l:template name="section" text="Section&#160;%n"/>

Any reason for this (Norman?), my personal oppinion is, that a reference to a section without the title is not very helpful?

Stephan

Dennis Grace wrote:
Add this to your 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="section-xref-numbered">
       <l:template name="bridgehead" text='Section %n, "%t"'/>
       <l:template name="sect1" text='Section %n, "%t"'/>
       <l:template name="sect2" text='Section %n, "%t"'/>
       <l:template name="sect3" text='Section %n, "%t"'/>
       <l:template name="sect4" text='Section %n, "%t"'/>
       <l:template name="sect5" text='Section %n, "%t"'/>
       <l:template name="section" text='Section %n, "%t"'/>
 </l:context>

 </l:l10n>
 </l:i18n>

 Dennis Grace


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