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: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Wed, 15 Aug 2007 09:23:43 +0100
On 8/15/07, Michael Kay <mike@xxxxxxxxxxxx> 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

Current Thread