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

Re: Javascript and XSLT

Subject: Re: Javascript and XSLT
From: Jen Jiang <zhenjiang14221@xxxxxxxxx>
Date: Sat, 25 Sep 2004 12:45:51 -0700 (PDT)
javascript in xslt
It does have javascript between tags <xsl:comment> and
</xsl:comment>. The reason I didn't include it in the
code was because the script was very long.



--- Robert Koberg <rob@xxxxxxxxxx> wrote:

> Jen Jiang wrote:
> 
> >It worked perfectly on Windows computer but stopped
> >working after I moved the site to an Unix computer.
> >  
> >
> 
> um... there is no way it can work because you do not
> have any javascript 
> (@src or content)
> 
> -Rob
> 
> >Thanks a lot.
> >
> >
> >
> >--- Michael Kay <mike@xxxxxxxxxxxx> wrote:
> >
> >  
> >
> >>Start by creating an HTML mockup of the page you
> >>want. Run it through the
> >>browser to make sure it works. If you can't get it
> >>working, that's not an
> >>XSLT problem. Once it works, think about writing a
> >>stylesheet to generate
> >>the same HTML. If you can't generate the same
> HTML,
> >>then that *is* an XSLT
> >>problem, which you can bring to this list.
> >>
> >>Michael Kay
> >>http://www.saxonica.com/
> >>
> >>    
> >>
> >>>-----Original Message-----
> >>>From: Jen Jiang [mailto:zhenjiang14221@xxxxxxxxx]
> 
> >>>Sent: 25 September 2004 18:15
> >>>To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> >>>Subject:  Javascript and XSLT
> >>>
> >>>Hello,
> >>>
> >>>In my main XSLT file I use <xsl:call-template
> >>>name="javascript" /> to include a template which
> >>>contains javascript functions (cascade menu) into
> >>>      
> >>>
> >>the
> >>    
> >>
> >>><head></head> tags of the main XSLT file. But
> when
> >>>      
> >>>
> >>I
> >>    
> >>
> >>>run the file the cascade menu doesn't show up and
> >>>      
> >>>
> >>I
> >>    
> >>
> >>>get an error "Object Expected". 
> >>>
> >>>main XSLT:
> >>>
> >>><xsl:stylesheet version="1.0"
> >>>xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> >>><xsl:import href="cascademenu_member.xsl"/>
> >>><xsl:template match="/">
> >>><html>
> >>><head>					
> >>><xsl:call-template name="cascademenu_member" />
> >>></head>
> >>><body onLoad="writeMenus()" onResize="if (isNS4)
> >>>nsResizeHandler()">
> >>>...
> >>>...
> >>></body>
> >>></html>
> >>></xsl:template>
> >>></xsl:stylesheet>	
> >>>
> >>>Template containing the javascript:
> >>>
> >>><xsl:stylesheet version="1.0"
> >>>xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> >>><xsl:template name="cascademenu_member">
> >>><script language="javascript"
> >>>      
> >>>
> >>type="text/javascript">
> >>    
> >>
> >>><xsl:comment><![CDATA[
> >>>]]></xsl:comment>
> >>></script>
> >>></xsl:template>
> >>></xsl:stylesheet>
> >>>
> >>>The problems:
> >>>1. The cascade menu doesn't show up at all.
> >>>2. Error message:
> >>>   "Line :20
> >>>   Error:Object Expected"
> >>>
> >>>Your help is appreciated,
> 
> 



		
__________________________________
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail

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.