xsl-list
[Top] [All Lists]

Apostrophe escaping in contains().

2003-12-02 10:08:40

        Hi!

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.

        Help?

--->Ben


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