RE: [xsl] Bug or feature

Subject: RE: [xsl] Bug or feature
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Thu, 26 Apr 2001 09:58:56 +0100
> 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:

Current Thread