Your understanding of the Catalonia unilateral declaration of independence is defective. Ditto are the purported positions of the United Nations and the European Union. 

Declaring independence with the support of 39 % of the people will not work because it is undemocratic. It is reckless to make UDI when over 61% did not choose secession. UDI is irresponsible and creates uncertainty and chaos for the people of Catalonia.

Only anarchists delight in such situations.

Leaders of the countries in the European Union have declared they will not support Catalonia splitting from Spain. International law "does not specifically grant component parts of sovereign states the legal right to secede unilaterally from their 'parent' state.". There is no case for the involvement of the UN as under international law, the right to secede unilaterally is meant for peoples under a colonial rule or foreign occupation; clearly not the case of Catalonia, that approved the Spanish Constitution.