xsl-list
[Top] [All Lists]

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

2007-08-15 01:24:07
On 8/15/07, Michael Kay <mike(_at_)saxonica(_dot_)com> wrote:
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.

That's good to know.

Does it also apply to [string-length(x) eq 0] and just test="string-length(x)" ?


-- 
http://andrewjwelch.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>
--~--