File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes single quote  double quotes problem ,,ASAP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "single quote  double quotes problem ,,ASAP" Watch "single quote  double quotes problem ,,ASAP" New topic

single quote double quotes problem ,,ASAP

Anil Jain
Ranch Hand

Joined: Mar 10, 2002
Posts: 51
i have a variable in xsl with a value like str1 = 6'3"Frame . When i m passing this function in my javascript function in xsl file getDatat('{str1}') i am getting errors. Please advise.

Anil Jain<br />Sun Certified Java(2) Programmer
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
try escaping your string
Sudarsan Raman

Joined: Aug 20, 2003
Posts: 12
Can't Ur variable be with ' and " ??
str1 = 6'3"Frame
will be
str1 = 6'3"Frame
This will be helpful (only) if U R using the value to be printed on the HTML page.
I agree. Here's the link:
subject: single quote double quotes problem ,,ASAP
It's not a secret anymore!