This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Bug or feature
- To: <xsl-list at lists dot mulberrytech dot com>, <xalan-dev at xml dot apache dot org>
- Subject: RE: [xsl] Bug or feature
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Thu, 26 Apr 2001 09:58:56 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> 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