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

including javascript??

Subject: including javascript??
From: "Marcus Klinge" <klinge@xxxxxxxxxxxxxxx>
Date: Fri, 6 Apr 2001 11:49:20 +0200
including javascript
Hi there.

I am currently sitting on a project that involves including javascript into
the output HTML file.
Sadly, my XSL does not seem to work properly.

My code goes like this:

	<xsl:template name="javascript_head">
		<xsl:choose>
			<xsl:when test="number(NAVIGATION/KAPITEL)=1">
				<script language="JavaScript">
					<xsl:comment>
						 if (top.location != window.location){top.location =
						window.location;}
						 //
					</xsl:comment>
				</script>
				<script language="JavaScript" src="../_nav/navmap1.js"
type="text/javascript"/>
				<script language="JavaScript" src="../_nav/big.js"
type="text/javascript"/>
			</xsl:when>
		</xsl:choose>
	</xsl:template>

What am I doing wrong (as obviously I am)?

Marcus Klinge
Web Producing
----------------------
Karzauninkat Webdesign
Barner Strasse 14
22765 Hamburg
Tel: 040 39834 771
Fax: 040 39834 779


 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.