• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Single quote conversion problem in XSL.... and JavaScript

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I tried to use the following in the XSL file but when i click the link the javascript gives me an error... as it does not understand quot; because during parsing the browser converts the "single quote" to quot; Please do let me know if there is any other way to handle the single quote problem...
----------Source----------------------------
<a href="openWin('{URL_NAME}?FormName=AddAppForm&FieldName=chk{HIDDEN_NAME}')"><xsl:value-of select="APP_NAME"/></a>
----------Source End ------------------------

--------------Result--------------------------
<a href="openWin('{URL_NAME}?FormName=AddAppForm&FieldName=chk{HIDDEN_NAME}&apos "><xsl:value-of select="APP_NAME"/></a>
-------------Result End------------------------
Thanks..
Shiney
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
in the source either do this
replace " with \"
or try using
CDATA
see if that works
[ April 28, 2003: Message edited by: Eric Pascarello ]
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic