xsl-list
[Top] [All Lists]

Re: How do I output script imbedded in my xsl ?? my (>) is not coming thru correctly

2005-05-20 21:52:59


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(_at_)lists(_dot_)mulberrytech(_dot_)com>                              
   
                    <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>

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--






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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>
  • Re: How do I output script imbedded in my xsl ?? my (>) is not coming thru correctly, omprakash . v <=