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

Redefinition of a variable

Subject: Redefinition of a variable
From: "Joerg Colberg" <joerg.colberg@xxxxxxxxxxx>
Date: Wed, 27 Sep 100 11:50:18 EDT
xsl variable redefinition
   As a newbie, I was thinking that xsl:variables are real
variables. They're not (well, technically, they might be variables
but that's not what most users would call a variable but a 
constant). Inside an xsl, I am now using redefinitions of
variables and the processor I'm using (IBM LotusXSL 1.0.1)
allows me to do that. What I'm doing is to use

...
<xsl:variable name="temp" select="'somestring'"/>
...
<xsl:variable name="temp" select="'someotherstring'"/>
...

The code is way more complicated than this but you get the
idea. Now, I have the following question:
   Is what I'm doing "legal"? Or is it another bug in
LotusXSL (LotusXSL allows me to do something like
<xsl:variable name="temp" select="$temp + 1"/> where
temp is a number). I know re-defining constants is not
what one is supposed to to using recursive programming
but when you have to write a complicated xsl which itself
writes a complicated xsl then sometimes you don't really
care about your principles... ;-)

Joerg
_________________________
Dr Joerg M Colberg
Econovo Software, Inc
joerg.colberg@xxxxxxxxxxx


 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.