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

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

At 05:30 PM 12/2/2003 +0000, David Carlisle wrote:
No they don't: Your snippet is not well formed XML, so it will not have
got as far as the XSLT engine:

Quite right. I misread the FAQ. My bad.


test='contains($text, "&apos;")'
remember that as far as the XML parser is concerned, Xpath syntax is
nothing, you just follow the XML rules: either wrap it in " and quote
any contained ", or wrap it in ' and quote any contained '.

That worked. Thanks!


--->Ben


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



Current Thread