aspose file tools*
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
JavaRanch » Java Forums » Engineering » XML and Related Technologies
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: 15376
    
    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://aspose.com/file-tools
 
subject: single quote double quotes problem ,,ASAP