Basically what they are trying to do is get this witness to say these particular words, and another witness to say something that also makes one of their points. They keep doing this until the end, when they cherry-pick a sentence from here, a phrase from there, and an unrelated point from someone else and try to put it all together and convince the judge that all these points support their version and the court should rule based on just those particular points.
Remember, these witnesses have all been through discovery, and both sides have all the same information. There is no such thing as a "surprise" witness or an unknown exculpatory piece of evidence. They can only massage the testimony and hope the judge agrees with their side's interpretation of what it all means.