On more example. On offset reference like $Name(nextSibling(aLink["source"])) will not work as the inner reference to the eachLink() loop variable is not resolved. But, if you needed to collect the next sibling of the link source:
So, you first resolve the link’s data to a string, store it in a variable and use the latter as an offset reference for the nextSibling designator. Obvious once you figure it out, but a silent fail if you haven’t.
I thought this worth noting as, reviewing my aTbref notes, it does (correctly!) say that designators allow offset references—except using find()—so without knowing better you might reasonably assume a loop variable hiding a title/path/ID would be valid usage. At present it isn’t, though the example above shows a simple workaround. Don’t worry about using an extra line of code - it won’t slow anything down and once written you won’t need to look at it again.