Spain's Attorney General Álvaro García Ortiz is on trial over allegations of leaking confidential information.