I have this sentence:
When (or As?) a node matching the anchor “Results” is visited, the subsequent nodes will be regarded in the scope of the context which begins with this anchor.
I doubt if I can say it as
When a node is visited which matches the anchor “Results”, the subsequent nodes will be regarded in the scope of the context which begins with this anchor.
In the second sentence I want to imply that matching occurs after visiting, while I think the first sentence doesn't imply this.
Am I right?
By the way my original sentence was:
By visiting a node which matches the anchor “Results”, the subsequent nodes will be counted in the scope of this context.
But I wasn't sure about its structure.