|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] writing to javascript variables -- problem w. '
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 ' ('). Needless to
say, I have no control over what text is the value of the element. I
could pre-process and substitute ' for ´ 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








