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

Another variable question

Subject: Another variable question
From: Christian NENTWICH <C.Nentwich@xxxxxxxxxxxx>
Date: Thu, 03 Jun 1999 17:54:39 +0100
a question to christian
Dear all,

a little newbie question that can be answered quickly. I have searched 
through the digest and didn't find an answer.

Suppose a have a global variable like this:

   <xsl:variable name="current_x">20</xsl:variable>

I want to use that variable to keep track of coordinates.. every time I
encounter a certain element, I want to increase it (I cannot use counters
for this purpose because I  will have to do other operations in the future),
e.g.

 <xsl:template match="whatever">
     <xsl:variable name="current_x" expr="$current_x+25"/>  
 </xsl:template>

The problem is (maybe similar to a previous posting anyway) that I now
create a new variable that has the value 45 but I have not changed the
global.

Thanks,
Christian


 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.