[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|