Well said.  The referendum was not well designed by the Catalan government, but the greater wrong here is the hard line attitude taken by the Spanish government.  We did it right in Canada.  So did the UK.  The Spanish government made the wrong choice.  

And the EU is complicit in its support for the undemocratic Spanish approach.  But that is hardly surprising - lack of respect for democracy is part of the Brussels culture.