Two Laptop Bag
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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply Bookmark "single quote  double quotes problem ,,ASAP" Watch "single quote  double quotes problem ,,ASAP" New topic
Author

single quote double quotes problem ,,ASAP

Anil Jain
Ranch Hand

Joined: Mar 10, 2002
Posts: 51
hello
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
author
Rancher

Joined: Nov 08, 2001
Posts: 15357
    
    6
try escaping your string
Sudarsan Raman
Greenhorn

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: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: single quote double quotes problem ,,ASAP
 
Similar Threads
Java and database data type
Replace function
String == operator
Is there any trim function in xsl ?
help in xsl getting row number