Re: [xsl] Using translate() for single quotes in XSL1.0

Subject: Re: [xsl] Using translate() for single quotes in XSL1.0
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 29 Aug 2006 15:09:58 +0100
>  Following the solution in the
> faqs i thought this would work:
> <xsl:value-of select="replace(.,'&#34;','&#39;')"/>

No, after it has been through the xml parser that is the XPath
expression
replace(.,'"',''')
and that last term is a syntax error, you need the XPath expression
replace(.,'"',"'")
which may be put into an XML attribute like so:
<xsl:value-of select="replace(.,'&#34;',&quot;'&quot;)"/>

David

Current Thread