[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Replacing an apostrophe in a string


Subject: [xsl] Replacing an apostrophe in a string
From: "Craig Sampson craig.sampson@xxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 4 Sep 2014 18:58:26 -0000

Sorry for the noise. I got it working right after posting for help.
The solution was to swap the quotes around in the statement, which I thought
I'd already tried, but it worked this time.

Eg:

<xsl:variable name="newString" select='replace($oldString, "&apos;" ,
"XXX")'/>

Thanks,
  Craig


Current Thread