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]

Bug or feature


I mistakenly used

<xsl:variable name="gummibaum"
    ><xsl:value-of
select="substring(2,string-length($sort)-2,$sort)"/></xsl:variable>

with a string containing variable $sort. The result was not an error with
this particular line, but a run time exception in the stylesheet, when the
variable is being used. This happened with Xalan 1. I'm now curious if this
is how it should be. It looks slightly like lazy evaluation of variables,
but it took me some time that not the XPath which used $gummibaum was wrong,
but the definition of $gummibaum :-)

Thank you,
Frank


 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]