Re: [xep-support] Replace straight apostrophe with curly apostrophe

From: Bob Stayton <bobs@sagehill.net>
Date: Mon Feb 15 2010 - 09:24:53 PST

Hi Jacques,
This is no longer an XEP issue, but an issue regarding customization of the DocBook
XSL stylesheets. I would suggest you submit the query to the docbook-apps mailing
list.

Bob Stayton
Sagehill Enterprises
bobs@sagehill.net

----- Original Message -----
From: "Jacques Foucry" <jacques@foucry.net>
To: <xep-support@renderx.com>
Sent: Monday, February 15, 2010 7:39 AM
Subject: Re: [xep-support] Replace straight apostrophe with curly apostrophe

> On 18 janv. 2010, at 00:20, G. Ken Holman wrote:
> Hello folks,
>
> I came back to this topic because I found a new issue (i think I've already the
> explanation, but I want your opinion.
>
>> Alternatively:
>>
>> <xsl:template match="computeroutput//text() | literal//text()">
>> ...just for the descendent text nodes...
>> </xsl:template>
>
> In my Custom Stylesheet I've put that :
>
> <xsl:param name="singlequote">
> <xsl:text>'</xsl:text>
> </xsl:param>
> <xsl:param name="curlyquote">
> <xsl:text>’</xsl:text>
> </xsl:param>
>
> <xsl:template match="d:para/text() | d:title/text()">
> <xsl:value-of select="translate(.,$singlequote,$curlyquote)"/>
> </xsl:template>
>
> Some where else, I redefine the generated text for figure link :
>
> <l:context name="xref-number-and-title">
> <l:template name="figure-jf" text="figure&#160;%n"/>
> <l:template name="chapter" text="Chapitre %n, %t"/>
> </l:context>
>
> And in my XML Docbook file I have something like that :
>
> <para>As you can see on <xref linkend="fig-1"/>
> <figure xml:id="fig-1>
> <title>From Alice's home directory</title>
> ...
> </figure>
>
> In the figure legend the straight quote is change into curly quote but not in the
> reference.
>
> I suppose it because the <xref> is resolve before the template is applied to
> <title>.
>
> Is there a solution to solve this issue, except moving the <xref> after the figure ?
>
> Thanks in advance for your help,
>
> Best regards,
> Jacques
> -------------------
> (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
> in the body of the message to majordomo@renderx.com from the address
> you are subscribed from.
> (*) By using the Service, you expressly agree to these Terms of Service
> http://www.renderx.com/terms-of-service.html
>
>

-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html
Received on Mon Feb 15 09:57:22 2010

This archive was generated by hypermail 2.1.8 : Mon Feb 15 2010 - 09:57:23 PST