[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: escape quotation marks in replace function
> Putting either ["] or ["] produces an error since both of these are used in the surrounding code. https://stackoverflow.com/a/12406745/36305 Thanks, Dimitre On Thu, Oct 3, 2024 at 11:50b/AM Wolfhart Totschnig wolfhart.totschnig@xxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > 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"b,E])'","$1C"b,K")"/> > > 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 > > XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list> > EasyUnsubscribe <http://lists.mulberrytech.com/unsub/xsl-list/782854> (by > email <>)
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|