This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: test if string contains an apostraphe



Try
<xsl:variable name="APOS">&apos;</xsl:variable>
<xsl:if test="contains($string, $APOS)">

Matt

     I also tried it like this: <xsl:if test="contains($string, &apos;)">
and <xsl:if test="contains($string, '&apos;')"> but got exceptions like the
one above.




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]