docbook-apps

  • 1.  Re: [docbook-apps] Replace straight apostrophe with curly apostrophe

    Posted 02-18-2010 18:40
    Hi,
    The difference with xref is that the content is processed in a different mode. Try
    adding this template to your customization layer:

    <xsl:template match="d:para/text()|d:title/text()" mode="no.anchor.mode">
    <xsl:value-of select="translate(.,$singlequote,$curlyquote)"/>
    </xsl:template>

    The 'no.anchor.mode' is used only for hot text, so that no nested links are created.

    Let me know if this does not work.

    Bob Stayton
    Sagehill Enterprises
    bobs@sagehill.net





  • 2.  Re: [docbook-apps] Replace straight apostrophe with curly apostrophe

    Posted 02-19-2010 14:30
    On 18 févr. 2010, at 19:39, Bob Stayton wrote:
    Hi Bob,

    > <xsl:template match="d:para/text()|d:title/text()" mode="no.anchor.mode">
    > <xsl:value-of select="translate(.,$singlequote,$curlyquote)"/>
    > </xsl:template>
    >
    > The 'no.anchor.mode' is used only for hot text, so that no nested links are created.
    >
    > Let me know if this does not work.


    It work's fine for all the case I've check.

    Thanks for your help,

    Jacques