xsl-list
[Top] [All Lists]

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

2006-08-29 07:10:15

 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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--