[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: How do I output script imbedded in my xsl ?? my (

Subject: RE: How do I output script imbedded in my xsl ?? my (>) is not coming thru correctly
From: "Bovy, Stephen J" <STEPHEN.Bovy@xxxxxx>
Date: Mon, 23 May 2005 11:08:24 -0400
xsl my
Hi everyone thanks for all the great help !!

I discovered the answer  use <xsl:text>  !!!!

-----Original Message-----
From: omprakash.v@xxxxxxxxxxxxx [mailto:omprakash.v@xxxxxxxxxxxxx]
Sent: Friday, May 20, 2005 9:53 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  How do I output script imbedded in my xsl ?? my (>)
is not coming thru correctly



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:      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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.