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

AW: including javascript??

Subject: AW: including javascript??
From: "Marcus Klinge" <klinge@xxxxxxxxxxxxxxx>
Date: Fri, 6 Apr 2001 15:45:07 +0200
free web tenmplate
I am sorry.
Of course I have a call-tenmplate hidden in my general.xsl

and of course, the test failed.  now I have all the output I want and need.
Thank you for your time and patience.

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

Marcus,
You don't tell us what doesn't work. I'm going to guess that you don't get
any output.
I presume you are doing a <xsl:call-template name="javascript_head" />
somewhere. If not then use match instead of name <xsl:template
match="javascript_head">. So then you will need a <javascript_head> element.
Let's assume you are getting into the template. The next problem might be
that the test is failing <xsl:when test="number(NAVIGATION/KAPITEL)=1"> is
saying if the numeric value of NAVIGATION/KAPITEL is 1 then output some
text. This will be true if you have the following xml

    <current context node>
	<NAVIGATION>
		<KAPITEL>1</KAPITEL>
	</NAVIGATION>

If you don't have that structure then the test will be false and you will
get no output.
Here are 2 files that work fine.

<?xml version="1.0"?>
<javascript_head>
	<NAVIGATION>
		<KAPITEL>1</KAPITEL>
	</NAVIGATION>
</javascript_head>

<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

	<xsl:template match="javascript_head">
	<html>
	<xsl:call-template name="javascript_head" />
	</html>
	</xsl:template>

	<!-- your template here -->

</xsl:stylesheet>

Ciao Chris

XML/XSL Portal
http://www.bayes.co.uk/xml


 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.