xsl-list
[Top] [All Lists]

RE: testing an apostrophe

2002-11-12 06:42:12
Hi,

i want to use a recursive template to repalce an apostrophe 
with "\'". how
can i test that the string contains an apostrophe ? am using:

<><><><><><><><><><><><><><><><><><><><><><><><><><>
<xsl:when test="contains($sString, ''')">
<><><><><><><><><><><><><><><><><><><><><><><><><><>

but gives me an error!

<xsl:when test='contains($sString, "&apos;")'>

Cheers,

Jarno - Feindflug: Roter Schnee

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>