|
Subject: Re[2]: Generating Javascript with HTML tags From: Jeni Tennison <mail@xxxxxxxxxxxxxxxx> Date: Thu, 9 Nov 2000 10:24:49 +0000 |
Edith,
> I tried both and it actually bolds the words "FldrDesc (2)". Can
> anyone else think of another way of keeping it a literal string of
> "<b>" and "</b>"?
Doesn't that depend on how gFld interprets the string it is passed?
Assuming it's interpreting it as XML/HTML, to stop it from
interpreting the <b>...</b> as a bold element you need gFld to be
passed the string:
"<b>FldrDesc (2)</b>"
In this case, you need to construct some Javascript that looks like:
fldr1 = insFld(fT, gFld("&lt;b&gt;FldrDesc (2)&lt;/b&gt;"));
which you can do in your XSLT either with the above line or with:
<![CDATA[
fldr1 = insFld(fT, gFld("<b>FldrDesc (2)</b>"));
]]>
I hope that helps,
Jeni
---
Jeni Tennison
http://www.jenitennison.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: Generating Javascript with HTML, RUSSO, EDITH | Thread | Re: Re[2]: Generating Javascript wi, Robert Koberg |
| Using client side XSLT to create SV, Lassi Lehto | Date | Re: Global Variables referencing ea, Jeni Tennison |
| Month |