Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Shiney Chacko
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • 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
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • 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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic