writing to javascript variables -- problem w. '

Subject: writing to javascript variables -- problem w. '
From: Stephen Yearl <stephen_yearl@xxxxxxx>
Date: Thu, 11 Nov 1999 15:38:58 -0800
Hello:

I think I am hammered, but perhaps someone can instead show me
otherwise. 

Using the quite ugly

<script language="JavaScript">
<![CDATA[title = ']]><xsl:value-of
select="data-field[@tag='245']"/><![CDATA[']]>
..rest of code..
<script>

so that I can later use title to write to a pop-up window works very
well *providing* the value doesn't contain an ' (&#039;). Needless to
say, I have no control over what text is the value of the element. I
could pre-process and substitute &#039; for &#180; in the XML, but to do
this for display purposes is an obvious no no.

cheers,

Stephen

(XT or MSXML solutions equally useful)

-- 
Stephen Yearl, Project Archivist
	stephen_yearl@xxxxxxx
*************************
 Connecticut Historical Society 
      1 Elizabeth Street
      Hartford, CT, 06105 
*************************
       http://www.chs.org 
*************************


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread