Subject: [xsl] escape quotation marks in replace function From: "Wolfhart Totschnig wolfhart.totschnig@xxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Thu, 3 Oct 2024 18:50:46 -0000 |
Dear list, The following replace function replaces a /straight/ single quotation mark (or apostrophe) with a /smart/ single quotation mark when it is preceded by either a space or a /smart double/ quotation mark: <xsl:value-of select="replace(.,"([ C"BB])'","$1C"BB")"/> I would like to add to this code such that it also replace the straight single quotation mark when it is preceded by a /straight/ double quotation mark. What do I have to add between the brackets to achieve this? Putting either ["] or ["] produces an error since both of these are used in the surrounding code. Thank you in advance for your help! Wolfhart
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] XSL-List Guidelines, B Tommie Usdin btusd | Thread | Re: [xsl] escape quotation marks in, Wolfhart Totschnig w |
[xsl] XSL-List Guidelines, B Tommie Usdin btusd | Date | Re: [xsl] escape quotation marks in, Wolfhart Totschnig w |
Month |