put generate-id() = generate-id(key('authorKey', text())[1])
instead of
generate-id() = generate-id(key('authorKey', text()))
Inspite of without [1] it is also work,
[1] makes more sense for me as soon as soon as we compare generate-id of current node and first node from the key.