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

Pass variables from template to another template

Subject: Pass variables from template to another template
From: Cheun N Chong <cnc99r@xxxxxxxxxxxxxxx>
Date: Thu, 25 May 2000 12:16:36 +0100 (BST)
pass variable from jsp template
Dear all,

	I am wondering how to pass one variable from one template to
another template. I have the following XML codes:

	<STUFF>
		<TYPE>milk</TYPE>
		<CONDITION>still can drink</CONDITION>
		<FEATURES>
			<EXPIREDATE>5 May 2000</EXPIREDATE>
			<BRAND>ASDA</BRAND>
		</FEATURES>	
	</STUFF>

	Now I have an XSL codes to pass in the expire date (<xsl:param
name="expire" />) and read the values at the tag <EXPIREDATE>... Now I am
not sure how to compare two variables, and change the <CONDITION> value?

	For example I pass in the "10 May 2000" and then compare it with
the "5 May 2000", and change the <CONDITION> to "expired". I am not sure
how to pass the two variables into the <CONDITION> template in XSL.

	Please give me some hints for doing this. Thousand thanks.

	

Best regards,
Cheun Ngen CHONG



 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.