Yes, and after last elections the majority of the Catalan parliament is pro-independence.
Instead of proclaming independence, a referendum is proposed, which has the support of 80% of the population in Catalonia.
Yeah I know that. The point I was trying to make is that the referendum wasn't deemed illegal because "the government of Catalonia isn't allowed to ask people's preferences". It is allowed and it happens all the time.