Legislation that could pave the way for a second Scottish independence referendum has been published at Holyrood.

First Minister Nicola Sturgeon said the Referendums (Scotland) Bill would give people north of the border the "opportunity to choose a better future".

The legislation does not include the timing of a possible second referendum or the question that would be put to voters – leaving these to be set by secondary regulations.

The Scottish Government said this could happen if Westminster grants Holyrood the power to stage another vote via a Section 30 order – something outgoing Prime Minister Theresa May repeatedly refused to do.

READ MORE: It’s on: SNP to set out new indyref2 bill in Holyrood

As the Bill was published Sturgeon said: "Now, more than ever, it is essential that we keep Scotland's options open so that people have the opportunity to choose a better future.

"An independence referendum within this parliamentary term will give Scotland the opportunity to choose to be an independent European nation – rather than have a Brexit future imposed upon us.

"Throughout the Brexit process, Scotland has been treated with contempt by Westminster, and our efforts to find compromise and protect the interests of the people of Scotland, who voted overwhelmingly to remain in the EU, have been ignored.

"We will seek agreement to a transfer of power at an appropriate point to enable an independence referendum that is beyond challenge to be held later in this parliament.

"It is essential the UK Government recognises that it would be a democratic outrage if it seeks to block such a referendum – indeed, any such stance would, in my view, prove to be utterly unsustainable."