Tim O'reilly has good advice for publishers.