[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] testing an apostrophe


Subject: RE: [xsl] testing an apostrophe
From: Jarno.Elovirta@xxxxxxxxx
Date: Tue, 12 Nov 2002 15:42:12 +0200

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



Current Thread