It should be noted that, where a party to a suit is required to give evidence or produce a document, the provisions as to witnesses apply to him, so far as they are applicable. ...