Taiwan says it will ‘defend itself,’ urges China to learn from history