The role of the attorney varies greatly across legal jurisdictions, and so it can be treated here in only the most general terms.