[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Cleyton Jordan wrote:
You need to escape the single quote in the JavaScript string literal as \'. With XSLT 1.0 you will have to write a template doing that or make use of EXSLT http://exslt.org/str/functions/replace/index.html or a similar library.
--
Re: [xsl] ESCAPE SINGLE QUOTES FOR JAVASCRIPT PARAMETER IN XSLT
Subject: Re: [xsl] ESCAPE SINGLE QUOTES FOR JAVASCRIPT PARAMETER IN XSLT From: Martin Honnen <Martin.Honnen@xxxxxx> Date: Sat, 07 Jun 2008 13:43:50 +0200 |
Cleyton Jordan wrote:
I use XSLT 1.0. So the function you provided will not work for me.
Is there any similar trick in XSLT 1.0?
You need to escape the single quote in the JavaScript string literal as \'. With XSLT 1.0 you will have to write a template doing that or make use of EXSLT http://exslt.org/str/functions/replace/index.html or a similar library.
--
Martin Honnen http://JavaScript.FAQTs.com/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] ESCAPE SINGLE QUOTES FOR , Cleyton Jordan | Thread | [xsl] xsl:include - multiple includ, Andrew Welch |
Re: [xsl] self axis vs ., Florent Georges | Date | Re: [xsl] self axis vs ., Mukul Gandhi |
Month |
Keywords