Basic expression generation for node with attribute text and parent