This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: test if string contains an apostraphe
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] test if string contains an apostraphe
- From: mjyoungblut at mmm dot com
- Date: Tue, 3 Jul 2001 14:57:33 -0500
- Reply-To: xsl-list at lists dot mulberrytech dot com
Try
<xsl:variable name="APOS">'</xsl:variable>
<xsl:if test="contains($string, $APOS)">
Matt
I also tried it like this: <xsl:if test="contains($string, ')">
and <xsl:if test="contains($string, ''')"> but got exceptions like the
one above.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list