xsl-list
[Top] [All Lists]

RE: Apostrophe escaping in contains().

2003-12-02 10:23:20
|       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