Correct observation, this can only return the text() as the lookup key, but we are also interested in having the lookup keys for all schemas. Thus, to be consistent, we add the lookup keys for leaves as well.