Xi Jinping rebuked Donald Trump, positioning himself as champion of globalization