[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Apostrophe in docbook document
On 25 janv. 2010, at 17:30, Mathieu Malaterre wrote: Hello, > #3 is the fastest to type. #2 and #4 are ugly to read when editing the .xml file using text file. How about solution #1 In my source document I use the single quote (#4). In my custom stylesheet I change them by the curly quote (#1). <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> I do not change for <computeroutput> or <litteral> tags. Jacques
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]