Checking for empty document fragments and testing CALL/WITH name.