[xquery-talk] XQuery quirk of the day

Andrew Welch andrew.j.welch at gmail.com
Sat Apr 14 01:12:28 PDT 2012


On 13 April 2012 20:09, David Lee <dlee at calldei.com> wrote:
> XQuery constantly surprises me !
>
> Today I was looking for a more concise way of testing if a string is empty
> or blank.


normalize-space($str)

will return true only if the string contains some none white space
characters, so empty string '' empty sequence () and whitespace only '
' will all return false.


-- 
Andrew Welch
http://andrewjwelch.com


More information about the talk mailing list