[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] Coding aroung a "Cannot convert zero-length string to an integer" error


Subject: RE: [xsl] Coding aroung a "Cannot convert zero-length string to an integer" error
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 15 Aug 2007 00:58:13 +0100

> Apart from not needing to do it,  Mike Kay has suggested that 
> string-length is relatively expensive because of the need to 
> sort out surrogate pairs before counting characters.

True, but in Saxon, [string-length(x) = 0] doesn't count the characters, it
simply checks whether the string is empty or not.

Michael Kay
http://www.saxonica.com/


Current Thread