RE: [xsl] Apostrophe escaping in contains().

Subject: RE: [xsl] Apostrophe escaping in contains().
From: "Allan Jones" <allan.jones@xxxxxxxxxxxx>
Date: Tue, 2 Dec 2003 17:23:20 -0000
|	The fragment I'm working with looks like this:
|<xsl:when test="contains($text, '"&apos;"')> some stuff </xsl:when>
|	I've searched the FAQs, and they report that I'm 
|escaping the apostrophe 
|correctly.
|	Help?

Maybe you've mistyped this, but I think what you actually need to write is:

<xsl:when test="contains($text, '"&apos;"')"> some stuff </xsl:when>

so that you close the test's quote properly.

b


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


Current Thread