[Home] [By Thread] [By Date] [Recent Entries]

Subject: testing an apostrophe
From: "Stevenson Ngila" <Stevenson@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 12 Nov 2002 16:31:28 +0300
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


Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member