handle multiple text nodes and no composite node