The Catalan regional parliament has voted to declare independence from Spain, just as the Spanish government appears set to impose direct rule.

The move was backed 70-10 in a ballot boycotted by opposition MPs.