This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Keep it simple S...
- From: Jarno dot Elovirta at nokia dot com
- To: xsl-list at lists dot mulberrytech dot com
- Date: Wed, 12 Dec 2001 17:15:56 +0200
- Subject: RE: [xsl] Keep it simple S...
- Reply-to: xsl-list at lists dot mulberrytech dot com
> <xsl:variable select="//C02/DID/UNITTITLE/PERSNAME/" name="$getit"/>
> <xsl:when name="contains($getit, '?')">
> <P><xsl:value-of select="$getit"/></P>
> </xsl:when>
>
> [I am doing this off the cuff, since I am at home and my book and
> files are at work, so the syntax might not be right.]
>
> I have typed ? but what I need to search for is " .
>
> And I wonder if I needed to search for ' or some other like character
> how I would be able to do it.
<xsl:variable select="//C02/DID/UNITTITLE/PERSNAME" name="getit"/>
<xsl:if test="contains($getit, '"')">
<P><xsl:value-of select="$getit"/></P>
</xsl:if>
Santtu
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list