Can anyone please tell me how I can escape a damned single-quote in an Xpath expression such as the one below?
<xsl:value-of select="translate(normalize-space(.), 'a', 'b')"/>
If I use 'a' and 'b' as the search and replace arguments, everything works well. But I need to search for single quotes and replace them with backslash + single quote. In other words, I need to use ''' and '\'' as my search and replace arguments, but that obviosuly doesn't work. Backslashes don't escape anything, of course, and using XML entities won't work either.
If you have an inkling of a clue, pleeeeease share it with me.
<xsl:value-of select="translate(normalize-space(.), 'a', 'b')"/>
If I use 'a' and 'b' as the search and replace arguments, everything works well. But I need to search for single quotes and replace them with backslash + single quote. In other words, I need to use ''' and '\'' as my search and replace arguments, but that obviosuly doesn't work. Backslashes don't escape anything, of course, and using XML entities won't work either.
If you have an inkling of a clue, pleeeeease share it with me.