xdmp:is-whitespace-node( [$text as node()] ) as xs:boolean
Returns true if the node is a text node containing only whitespace.
xdmp:is-whitespace-node(<x>a</x>) => false()