<xsl:variable name="apos">'</xsl:variable>
<xsl:when test="contains($sString, $apos)">
Michael Kay
Software AG
home: Michael(_dot_)H(_dot_)Kay(_at_)ntlworld(_dot_)com
work: Michael(_dot_)Kay(_at_)softwareag(_dot_)com
-----Original Message-----
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com] On Behalf Of
Stevenson Ngila
Sent: 12 November 2002 13:31
To: Xsl-List(_at_)Lists(_dot_) Mulberrytech. Com
Subject: [xsl] 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