|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Escaping single quote
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
|
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
|

Cart








