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

AW: Using XSl:Variable and XSL:if together.

Subject: AW: Using XSl:Variable and XSL:if together.
From: Jan Kohnert <J.Kohnert@xxxxxxxxxxx>
Date: Thu, 1 Apr 2004 08:51:29 +0200
xsl if variable
If you are using the saxon processor u can use variables and a lot of other
extra features.
you can use variables like this with it:

first initialize it:
<xsl:variable name="OLDANAKURZ" saxon:assignable="yes">0</xsl:variable>

then use it:
<saxon:assign name="Y" select="$Y +1"/>


Mit freundlichen Gr|_en
Jan Kohnert
----------------------------------------------------------------------------
--
FREY Computersysteme GmbH	http://www.swisslab.de
Jan Kohnert			<mailto:j.kohnert@xxxxxxxxxxx>
Bergholzstr. 8			Hotline: +49 30 62601-101
D 12099 Berlin			HotFax:+49 30 62601-122
				Tel. +49 30 62601-0


-----Urspr|ngliche Nachricht-----
Von: Animesh Sharma [mailto:asharma@xxxxxxxxxxxxxxxx]
Gesendet: Donnerstag, 1. April 2004 08:39
An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Betreff: RE:  Using XSl:Variable and XSL:if together.



oh. I just realized that Variable value cann't be reset once it is defined.

So, is there a alternative way where I can do different operation depending
on the position of node(element) to be even or odd.

Thanks ,
Animesh


-----Original Message-----
From: Animesh Sharma 
Sent: Thursday, April 01, 2004 11:44 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  Using XSl:Variable and XSL:if together.


Hi,

I want to declare a variable and use it in if statement.
I'm trying as follows.

	<xsl:variable name="chkValue" select="'true'"/>
	
	<xsl:if chkValue="true">
	
	--perform some operation.
	
	Change the value of variable name chkValue.	
	<xsl:variable name="chkValue" select="'false'"/>
	
	</xsl:if>

Please let me know where I'm going wrong in above implementation.

Thanks and regards,
Animesh

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.