This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Re[2]: Generating Javascript with HTML tags


You should not be able to see javascript on the html page, let alone see it
bolded.  Do you have your script between script tags?


> > 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:
>
>   "&lt;b&gt;FldrDesc (2)&lt;/b&gt;"
>
> In this case, you need to construct some Javascript that looks like:
>
>   fldr1 = insFld(fT, gFld("&amp;lt;b&amp;gt;FldrDesc
(2)&amp;lt;/b&amp;gt;"));
>
> which you can do in your XSLT either with the above line or with:
>
>   <![CDATA[
>     fldr1 = insFld(fT, gFld("&lt;b&gt;FldrDesc (2)&lt;/b&gt;"));
>   ]]>
>



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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]