Subject: Re: [xsl] How do I output script imbedded in my xsl ?? my (>) is not coming thru correctly From: omprakash.v@xxxxxxxxxxxxx Date: Sat, 21 May 2005 10:22:59 +0530 |
Hi, See this earlier post by someone who was also writing out javascript code using xsl. Hope this helps. David, Good suggestion. The syntax for escaping the angle brackets when not using the CDATA section was pretty tricky. This is what finally worked: Ann Marie <xsl:comment> function showbook() { var showframeURL = '<xsl:value-of select="$__Frameset_File_Name_token"/>' + "?" + document.URL; <![CDATA[ var hideframeURL = unescape(document.URL); if (window.self == top) { document.write("<a href='" + showframeURL + "' title='Show table of contents and index'><font face='verdana, arial, helvetica, sans serif' size='1'>Show Book</font></a>"); } else { document.write("<a href='" + hideframeURL + "' target='_top' title='Hide table of contents and index'><font face='verdana, arial, helvetica, sans serif' size='1'>Hide Book</font></a>"); } } showbook(); //]]></xsl:comment> </script> Cheers, Omprakash.V "Bovy, Stephen J" To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> <STEPHEN.Bovy cc: (bcc: omprakash.v/Polaris) @ca.com> Subject: [xsl] How do I output script imbedded in my xsl ?? my (>) is not coming thru correctly 05/21/2005 03:12 AM Please respond to xsl-list <script language="JavaScript" type="text/javascript"> var mh = document.body.clientHeight - document.getElementById("vtb1").clientHeight - 100; if ( document.getElementById("vtb2").offsetHeight > mh ) { document.getElementById("vtb2").style.height = mh; } document.getElementById("vtb1").style.display="block" document.getElementById("vtb2").style.display="block" </script> This e-Mail may contain proprietary and confidential information and is sent for the intended recipient(s) only. If by an addressing or transmission error this mail has been misdirected to you, you are requested to delete this mail immediately. You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail message, contents or its attachment other than by its intended recipient/s is strictly prohibited. Visit Us at http://www.polaris.co.in
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] How do I output script im, David Carlisle | Thread | Re: [xsl] Customising an XSLT proce, Colin Paul Adams |
Re: [xsl] numbering/count(), Bruce D'Arcus | Date | Re: [xsl] get Data BETWEEN FromDat, Mukul Gandhi |
Month |