|
Subject: RE: [xsl] Escaping single quote From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx> Date: Fri, 12 Jul 2002 18:23:08 +0100 |
What language are you writing in? Which part of the code below is
supposed to be XPath? If "function()" is a JavaScript function, for
example, then use the escape conventions for JavaScript. (Presumably
"\'").
Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx
>
> I have a String that I want to send to a function, but there
> are single quotes in it. How can I escape the single quotes?
>
> Example:
>
> function('dataLocation/data[@ID='5']')
>
> The '5' is causing XSL to complain. How can I escape the
> single quotes around the 5?
>
> Thanks.
>
> Manish
>
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] Escaping single quote, Michael Kay | Thread | [xsl] default attribute values?, Michael |
| RE: [xsl] grouping consecutive elem, Michael Kay | Date | Re: [xsl] Escaping single quote, Manish M. Shah |
| Month |