Subject: RE: Need to detect if a node has a ' or ' or " or " within it
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Tue, 27 Aug 2002 18:02:36 +0100
|
> 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@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|