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
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to