[Home] [By Thread] [By Date] [Recent Entries]
At 2009-08-05 20:36 +0200, Hermann Stamm-Wilbrandt wrote:
There was a typo in my last email, '%22' works for " "/*/*/*[contains(normalize-space(.),'%22')])" and '%27' does not work for ' ( the %22 gets converted to " character by unescape(s) ) This is not true for XPath. The "%" notation is not recognized.
In XSLT 2: "//*[contains(., concat('What','''',' that?'))]" or more simply just: "//*[contains(., 'What'' that?')]" In XSLT 1: "//*[contains(., 'What' that?)]" But be careful because the above selects the document element which will contain all text in its value. > Implementing breaking up the string with JavaScript should be possible >although having to stuff all that into a bookmarklet might get ugly. Perhaps this might get ugly, but not without a solution to match for the single " character ... " is " - the double quote ' is ' - the apostrophe (single quote) I hope this helps. . . . . . . . . . . . . . Ken
|

Cart



