docbook-apps

  • 1.  Indexterms with emphasis and citetitle elements

    Posted 01-09-2016 13:02
    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.



  • 2.  Re: [docbook-apps] Indexterms with emphasis and citetitle elements

    Posted 01-10-2016 16:55
    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.
    >



  • 3.  Re: [docbook-apps] Indexterms with emphasis and citetitle elements

    Posted 01-11-2016 12:15
    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.
    >>
    >>