<xsl:variable name="apos">'</xsl:variable>
<xsl:when test="contains($sString, $apos)">
Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx
> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of
> Stevenson Ngila
> Sent: 12 November 2002 13:31
> To: Xsl-List@Lists. Mulberrytech. Com
> Subject: testing an apostrophe
>
>
> 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!
>
> Thanks,
> Stevenson Ngila
> Footman-Walker Associates Ltd
> http://www.footman-walker.co.uk
>
>
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|