[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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
javascript 039
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.