This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Redefinition of a variable


   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@econovo.com


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]