xsl-list
[Top] [All Lists]

Re: Apostrophe escaping in contains().

2003-12-02 10:39:51

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, "'")'
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