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: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
AW: [xsl] Bug or feature, Nestel, Frank | Thread | AW: [xsl] regular expressions ?, Mengel Andre (FV/SLM |
Re: [xsl] finding position() of an , Jeni Tennison | Date | RE: [xsl] replacing spaces in xml, Robert Seber |
Month |