On 13 April 2012 20:09, David Lee <[email protected]> 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
_______________________________________________
[email protected]
http://x-query.com/mailman/listinfo/talk

Reply via email to