[xsl] Apostrophe escaping in contains().

Subject: [xsl] Apostrophe escaping in contains().
From: Ben Trafford <ben@xxxxxxxxxxx>
Date: Tue, 02 Dec 2003 12:08:40 -0500


I'm trying to get a test using contains() to look for an apostrophe. My XSLT processor (Saxon) keeps telling me that I need whitespace between attributes.

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.



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

Current Thread