xsl-list
[Top] [All Lists]

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

2007-08-14 16:59:25
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/


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--