Are a minority of the people of Xinjiang committing violent acts because they want a Caliphate and to convert Han chinese, or are they doing it because the Uighurs are treated very badly by the Chinese government and they want autonomy and rallying around a common religious identity is their own recourse, especially if they want help from overseas?
Why do we not treat the Northern Irish who rallied around their religious identity and attracted the sympathies and support of American Irish?
Why when Tibetan Buddhists commit violence we don't say it's their religion and immediately start looking for geo-political or economic reasons?
When people are abused, tribes develop and they rally around whatever they have left: skin color, language, religion. While I have problems with Islam's doctrine, and religion in general (especially Abrahamic religions), it's extremely simplistic to attribute everyone's motivations and actions to the doctrine and not look at what drove individuals to commit acts against the state.