RE: [xsl] Keep it simple S...

Subject: RE: [xsl] Keep it simple S...
From: Jarno.Elovirta@xxxxxxxxx
Date: Wed, 12 Dec 2001 17:15:56 +0200
> <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, '&quot;')">
<P><xsl:value-of select="$getit"/></P>
</xsl:if>

Santtu

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


Current Thread