This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Need to detect if a node has a ' or ' or " or " within it
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Tue, 27 Aug 2002 18:02:36 +0100
- Subject: RE: [xsl] Need to detect if a node has a ' or ' or " or " within it
- Reply-to: xsl-list at lists dot mulberrytech dot com
> How do I test in a choose if the xml node contains a ' "
> " OR ' in the text value.
>
<xsl:variable name="quot">"</xsl:variable>
<xsl:variable name="apos">'</xsl:variable>
<xsl:when test="contains(., $quot) or contains(., $apos)">
Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list