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

Re: XSL embedded Script Questions.

Subject: Re: XSL embedded Script Questions.
From: Duane Nickull <duane@xxxxxxxxxxxxx>
Date: Tue, 14 Dec 1999 08:56:53 -0800
embedding script in xml
I copied this script and called it up from IE 5.0. It seemed to work
fine.  I presume you are calling the script from an XML document that
specifies this script as an *.xsl stylesheet.  I also added the <?xml
version="1.0?> on the first line.  No reason why it shouldn;t work
without that it called from an XML doc.

The syntax doesn't directly violate any javascript conventions.  

Duane Nickull
  

Jia Ming Li wrote:
> 
> I have a question on embedding scripts to xsl.
> 
> =========================================================
> <xsl:stylesheet type="text/xsl" xmlns:xsl="http://www.w3.org/TR/WD-xsl">
>   <xsl:template match="/">
>     <HTML>
>       <HEAD>
>         <SCRIPT LANGUAGE="JSCRIPT"><xsl:comment><![CDATA[
>           function testingClick()
>           {
>         document.write("It works");
>           }
>         ]]></xsl:comment></SCRIPT>
>       </HEAD>
>       <BODY>
>           <DIV onClick="testingClick()">
>         Please Click on Me.
>           </DIV>
>       </BODY>
>     </HTML>
>   </xsl:template>
> </xsl:stylesheet>
> =========================================================
> 
> Using MS XML/XSL Viewer to view the above script. When I click on the
> "Please Click on Me."
> It kept giving me error essage saying: "Object Expected"!!!!!
> But if I convert it to HTML and then click on it it works.
> anybody know what object is it looking for?
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

-- 
/**************************************************\
| http://www.xmlglobal.com  /* Corporate site */    |
| http://www.goxml.com     /* XML Search engine */  |
| http://www.cartnetwork.com /* XML E-commerce */   |
|   "Really Cool XML Solutions - available today!"  |
\**************************************************/


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


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.