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]

RE: Bug or feature


> Yes, $sort was declared and contained a string.
> > select="substring(2,string-length($sort)-2,$sort)"/></xsl:variable>

Then I think the correct behavior (assuming the $sort string is non-numeric)
is that substring() should return an empty string. This is because the
second and third arguments are both NaN, and no characters in the string are
at positions P where P>=NaN and P<NaN+NaN, because comparisons with NaN are
always false.

Mike Kay
Software AG


 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]