OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

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


Subject: Re: [docbook] XSL Customization for biblioentry generated text with xref


Hi Mattias,
Cross references to biblioentry do not use the system of gentext templates. That's because some people want to use numbers and others abbrev. Also, its <title> entry isn't the same as other titles, because it is the title of another document, not the biblioentry (and title isn't required in a biblioentry). So instead, the stylesheet provides an XSL template and the "bibliography.numbered" param that can be customized. That template handles the various options for an entry.

The template you want to customize is in the xref.xsl stylesheet module and starts with:

<xsl:template match="biblioentry|bibliomixed" mode="xref-to">


Bob Stayton
Sagehill Enterprises
bobs@sagehill.net

On 9/2/2015 4:30 AM, Mattias Hird wrote:
Hello,

I am trying to customize the generated text from xref to biblioentries
but can't get it to work. It works fine for chapter, appendix and
section elements, but not biblioentry.
The XSL I am using:
<l:context name="xref">
   <l:template name="appendix" text="App. %n: &#8220;%t&#8221;"/>
   <l:template name="chapter" text="Chap. %n: &#8220;%t&#8221;"/>
   <l:template name="section" text="Sec. %n: &#8220;%t&#8221;"/>
   <l:template name="biblioentry" text="Bibl. %n: &#8220;%t&#8221;"/>
</l:context>

What am I missing and/or am doing wrong?

Regards,
Mattias Hird


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