Check for text nodes.
The following construct(s) refer to this construct:
A TextTest
restricts the node sequence to text nodes. This
test is not meaningful on the attribute axis, since attributes have no text
nodes.
Select the text nodes of all patient's surnames:
input()/patient/name/surname/text()
Text nodes appear as xq:textNode
in the
response document returned by Tamino: