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] Indexterms with emphasis and citetitle elements


Thanks Bob:
I appreciate this - will look forward to seeing this a built in feature in the future.

On Sun, Jan 10, 2016 at 1:25 PM, Bob Stayton <bobs@sagehill.net> wrote:
Hi,
This requires a customization, although it would make a fine feature at some point as it has been requested before.

You'll need to customize the template in fo/autoidx.xsl that starts with:

<xsl:template match="indexterm" mode="index-primary">

In your customized version of the template, change

  <xsl:value-of select="primary"/>

which just selects the text content of the <primary> element to:

  <xsl:apply-templates select="primary/node()"/>

which will apply templates to format the content of the element.

If you want secondary and tertiary entries to also get such formatting, you'll need to also customize

<xsl:template match="indexterm" mode="index-secondary">
<xsl:template match="indexterm" mode="index-tertiary">



Bob Stayton
Sagehill Enterprises
bobs@sagehill.net


On 1/9/2016 5:02 AM, Pc Thoms wrote:
When generating an index using 1.79.0 the <emphasis/> and <citetitle/>
elements do not produce any italicized text in an index generated in
pdf, or xhtml.
Would like this to work.




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