Sentence:  The algorithm pops the stack to obtain a new current node when there are no more <WSD>children</WSD> (when it reaches a leaf). 
Meaning of the word marked with <WSD> tags:  A data item, process, or object which has a subservient or derivative role relative to another.