Nicola Sturgeon today set out a detailed explanation of why Scotland would not have to leave the EU if there is a yes vote for independence.

In a lengthy ministerial statement to MSPs at Holyrood, the Deputy First Minister said Scotland and the rest of the UK would have a shared interest in concluding negotiations with other EU member states smoothly and quickly between the 2014 referendum and the next Scottish election in 2016.

Ms Sturgeon said her position was "very deliberately relying, not simply on arguments of law or process, but on arguments of common sense, reality and mutual self-interest" - for Scotland, the rest of the UK, and the EU.

She added: "We are an integral member of the EU and it is not credible to argue that the other nations of the EU would not want to retain access to the vast array of resources and opportunities that Scotland brings to the EU table."

However, earlier, at First Minister's Questions in Holyrood, Alex Salmond was accused of living in a fantasy world when he came under fire from all three main opposition leaders for the Scottish Government's stance on the EU issue.

Nicola Sturgeon's statement

I am pleased to have the opportunity to make a statement on an independent Scotland’s continuing membership of the European Union and to respond to recent statements by the President of the European Commission, Jose Manuel Barroso.

Firstly, let me be clear that the Scottish Government believes that Scotland should continue to be a member of the EU; a view that does not appear to be shared by a UK government that is displaying ever increasing signs of Euro-scepticism. Indeed, in my view, it is the overtly hostile stance of the UK government – or at least significant parts of it – that presents the real risk to Scotland’s continuing membership of the EU.

This government believes that Scotland does benefit from EU membership and that the EU benefits – enormously – from having Scotland as a member. It is also our view that Scotland’s interests would be better represented in the EU by an independent Scottish Government, with a seat at the top table, able to speak up for our national interest without having to seek the prior permission of UK ministers; and a government able to work closely and constructively with partners across these islands, and across the EU, to advance our shared interests.

Presiding Officer, that is our ambition for Scotland’s future in Europe. It is positive and constructive – with Scotland’s and Europe’s best interests at its heart - and it stands in sharp contrast to the stance of the UK government.

Let me turn now to the recent statements of the President of the European Commission.

As head of the Commission, Mr Barroso’s opinion on this matter should be – and will be by this Government - treated seriously and with respect.

That is why I have written to him seeking an early opportunity to discuss the particular process by which Scotland would become independent and the implications of that for our continued EU membership.

However, in doing so, it is important that I also set out the following points.

Firstly, the European Commission, however important, is not the final arbiter of these matters. Mr Barroso’s statements do not constitute a ‘ruling’, as some have suggested. Nor does the Commission even claim to be specifically addressing the particular situation of Scotland.

Indeed, the President of the Commission himself made clear, in his letter to the House of Lords Committee, that ‘the European Commission has expressed its views in general…’

Second, there is absolutely no provision in the EU Treaties for the dis-application of those Treaties or the removal of EU citizenship from a country and its people when they exercise their democratic right to self-determination. And it would be extraordinary if anyone in this chamber - or indeed anyone else committed to the principle of democracy - was to suggest that there should be.

Indeed, Mr Barroso said in response to a question on 10 November 2012, ‘There are no provisions in the Treaties that refer to the secession from a member state.’

Therefore, what I want to outline to the President – and indeed hear his views on – is the specific process by which Scotland would become independent and the way in which we would seek to ensure that our intention to remain within the EU is achieved.

Firstly, let me deal with the process of independence. As a result of the Edinburgh Agreement that process is democratic, agreed and consensual and the result will be respected and implemented by both the Scottish and UK governments.

Following a ‘yes’ vote in 2014, a process of negotiation will take place with the UK government on the transfer of powers to an independent Scottish Parliament. As I said last week, it would be the intention of the Scottish Government to invite representatives of the other parties and of civic Scotland to contribute to that process. It is a process that we would intend to have completed in time for the next Scottish election in 2016. However, in the period between autumn 2014 and May 2016, Scotland would still be in the UK and, therefore, by definition, still within the EU.

In parallel to negotiations with the UK government, it would be our intention to negotiate the terms of an independent Scotland’s continuing membership of the EU.

And here I should point out that the need for negotiations with the EU was made clear by the Scottish Government in Choosing Scotland’s Future in 2007, in Your Scotland, Your Voice in 2009 and in Your Scotland, Your Referendum in 2012. And it is worth remembering that these are matters that are likely to be about political negotiation more than they will be about legal process.

Let me also pause here to reflect on the position of the UK in such negotiations. It would be interesting to hear those who argue that an independent Scotland would have to reapply for EU membership explain in some detail why that same argument wouldn’t also be true of the rest of the UK, given that the democratic process we are engaged in would lead to the dissolution of the UK in its current political form. However, since I do not believe that we would be in a formal re-application situation, I will not dwell on that point.

However, what will undoubtedly be the case is that negotiation on terms of continuing membership will be highly relevant to the rest of the UK which will require to determine, for example, its own number of seats in the European Parliament and its revised financial contribution.

So, I believe Scotland and the rest of the UK would have a shared interest in concluding such negotiations smoothly and quickly.

And I believe that such a sensible process of negotiation will result in Scotland’s continuing membership of the EU on terms that are reasonable. And by that I mean, for example, that just like Sweden, we would not join the Euro until and unless it was in Scotland’s interests to do so and we had satisfied the conditions for doing so. And, just like Ireland, we would not enter Schengen but would instead look to co-operate with Ireland and the rest of the UK in the Common Travel Area. Both of these positions are practical and justifiable and would, I am sure, be supported by all parties here in Scotland. And, given their approach in other circumstances, the evidence suggests they would be understood by our European partners.

I will cite two reasons for my view and, in so doing, I am very deliberately relying, not simply on arguments of law or process, but on arguments of common sense, reality and mutual self-interest.

Firstly, the EU is an organisation that welcomes new members. It wants others to join – it most certainly would not want to see existing parts of its territory leave.

Let me quote, again, the words of Mr Barroso, this time on 11 September – ‘I see no country leaving and I see many countries wanting to join.’

The EU is also an inherently flexible organisation – it adapts, as indeed it should, to the changing circumstances of its member states. To demonstrate that, we just have to look at how quickly and smoothly the former East Germany was integrated into the EU following re-unification. Indeed it’s instructive to read the press release issued by the Commission about East Germany in 1990. It said, ‘The community institutions have all done their utmost to bring about the integration of what was the German Democratic Republic as smoothly as possible and within the timescale allowed by the unification process.’

There was no direct precedent for what happened with East Germany – just as there is no precedent for what might happen in Scotland – but the EU found a solution that is consistent with the principle of sincere co-operation that lies at the heart of the EU Treaties. They adapted and they did it on the basis of common sense and accommodation of internal decisions taken by one of its member states.

My second reason for believing that Scotland would continue in membership of the EU is that it is overwhelmingly in the EU’s interests for us to do so.

And by that I don’t just mean that to go through the complicated process of putting Scotland outside the EU, just for us to be readmitted later, would be – as Graham Avery, an Honorary DG of the Commission, said – 'not feasible'.

I mean that Scotland’s vast assets – fishing, oil and gas, renewables; our value as an export market to other member states; our education system enjoyed by thousands of EU students every year; and our status as home to tens of thousands of EU citizens, mean that the economic, social and political interests of the EU would be best served by Scotland remaining in continuous membership.

Let us just look at some of that in more detail. We have around 90% of the EU's oil and gas reserves. We accounted for around two-thirds of EU crude oil and a fifth of EU natural gas production in 2009. An independent Scotland would be the largest producer of oil and the second largest producer of gas in the EU.

In 2010/11, there were more than 16,000 EU students enrolled at Scottish HEIs and 150,000 EU citizens living here by virtue of the freedom of movement that comes with us as being part of the EU.

We are an integral member of the EU and it is not credible to argue that the other nations of the EU would not want to retain access to the vast array of resources and opportunities that Scotland brings to the EU table.

Indeed, if the opposition parties have Scotland’s best interests at heart then – notwithstanding their opposition to independence – they will accept that, in the event of a ‘yes’ vote, the process I have outlined today would be in the best interests of Scotland, the UK and the EU.

FMQ debate

Labour leader Johann Lamont hit out at the "fantasy world the First Minister now inhabits".

She claimed that Mr Salmond, Nicola Sturgeon and Finance Secretary John Swinney are "misleading Scotland" about what would happen if it was to become independent.

"The man in charge of the European Commission, Jose Manuel Barroso, has told the BBC if there is a new state, of course that state has to apply for membership," Ms Lamont told the SNP leader.

"What part of that statement does the First Minister not understand?"

Mr Salmond told her: "The Scottish National Party Government has never argued we wouldn't have to negotiate our position in terms of the European Union. It's never been our position there would not be negotiations. The point is, negotiations would be held from within the context of the European Union."

He insisted that "no serious person actually believes" that if Scotland left the UK, it would be excluded from the EU.

He went on to highlight Scotland's resources, including North Sea oil and gas and the country's renewable energy, and said: "It's not just in the interests of Scotland to be a member of the European Union. It's overwhelmingly in the interests of the European Union to have Scotland as a member."

The clash comes in the midst of the debate about an independent Scotland's future within Europe. It also comes after the Bank of England denied having a "very helpful dialogue" with Finance Secretary John Swinney about monetary arrangements post-independence.

The SNP administration says Scotland would retain the pound if it left the UK, forming a sterling zone with the rest of the country.

A spokeswoman for the bank said it has "not entered a discussion about the possibility of changing monetary arrangements for the Scotland in future".

Ms Lamont told Mr Salmond: "Just keeping saying something doesn't make it true."

The Labour leader recalled that Ms Sturgeon told Holyrood in 2007 that "Scotland would automatically be a member of the European Union upon independence, there is legal opinion to back that up".

But with Ms Sturgeon only having sought the specific advice of law officers on that issue this year, Ms Lamont said: "It now transpires that she hadn't even asked for the legal advice that allowed her to make that assertion."

This "ministerial habit of assertion is viral", she said.

Mr Swinney told the Lords Economic Affairs Committee that he was having a "very helpful dialogue" with the Bank of England about keeping the pound after independence.

"What does the bank say? 'We have not entered a dialogue'."

On Europe, Mr Salmond insisted there is "ample legal opinion" to support the SNP's position that Scotland's membership would continue

Regarding discussions with the bank, he said the Scottish Government has "engaged with the Bank of England to discuss factual and technical matters around a proposal for a macro-economic framework".

The First Minister said: "The SNP Government engages with those who are willing to engage in discussions. We have engaged in the factual information requested from the Bank of England. We are prepared to engage with the president of the European Commission."

Ms Lamont hit back: "In the fantasy world the First Minister now inhabits, that meant a stout defence of his position."

Mr Salmond's "problem is he claims he wants to have dialogue with all of these people. But he asserted we would be in Europe, we would be part of a sterling zone without ever asking anybody, without ever having a a conversation".

The First Minister has "a bit of a credibility problem".

She said: "Does he not see that when he says he has sought legal advice when he hasn't, people doubt the next words that come out of his mouth. When his Finance Secretary says he is in dialogue with the Bank of England and the bank say they are not, what does that say about his Government?

"Isn't it the truth that John Swinney, Nicola Sturgeon, Alex Salmond, all of them, are not leading Scotland, they are misleading Scotland."

Mr Salmond told her the Bank of England was "perfectly proper in providing the resource for the technical advice" requested by the Fiscal Commission, set up by the Scottish Government to examine the fiscal and macro-economic framework for Scotland with independence.

"That is a proper thing for the Bank of England to do," Mr Salmond said.

"It doesn't take a public position on the debate on independence. It has no reason to take such a public position. You wouldn't expect it to take such a public position."

On Europe, he said: "The Scottish National Party Government has never argued we wouldn't have to negotiate our position in terms of the European Union. It's never been our position there would not be negotiations. The point is negotiations would be held from within the context of the European Union.

"We have maintained there would be negotiations on the question of Scotland's position in the European Union. The point is we have said, and this is unambiguously the case, these negotiations would take place from within the context of the European Union."

A number of Labour MPs and MEPs accept that "Scotland would not be excluded from the European Union", Mr Salmond said.

"No serious person actually believes that to be the case.

"It is entirely reasonable for the Scottish Government to speak to, engage with important authorities in terms of preparing the ground for the independence referendum and the White Paper next autumn.

"We are perfectly prepared to rebut the scaremongering of the Labour party and we stand on the ground that the country with 90% of the oil reserves of the European Union, with 25% of the potential renewable energy reserves, the second largest gas provider in the European Union, with 60% of the territorial waters of these islands, is something no serious person across this continent would try to exclude from the European Union."

Conservative leader Ruth Davidson said the First Minister and Finance Secretary have been "spanked and sent to bed" by the EC president and Bank of England.

She demanded details of talks between the Scottish Government and other institutions on the issue of independence.

Mr Salmond, who only said informal dialogue takes place, challenged the Tories on their position on Scotland and the EU.

Ms Davidson said the SNP leader should give "straight answers", telling Parliament: "This all adds to quite an unedifying week in which first the First Minister and then the Finance Secretary were spanked and sent to bed by President Barroso and the Bank of England for not doing their homework properly.

"Now in a panic, the head girl, Nicola Sturgeon, is being dispatched to Brussels to sort this mess out."

But Mr Salmond said disagreeing with the EC president is not unknown.

"David Cameron said yesterday 'I don't agree with President Barroso', at Prime Minister's Questions. That seemed to me a perfectly reasonable statement."

Conservatives have been disagreeing with the EC for years because some want to leave the EU, Mr Salmond said.

"The only substantial threat to Scotland's position as a European Union nation is from the Conservative party with its undying hostility to anything European and who are preparing a substantial section of it for Scotland's exit from the European Union."

Liberal Democrat leader Willie Rennie said the debate is not about about membership but about the terms of membership.

"As this Government has finally admitted that it will need to negotiate Scotland's membership on the European Union, can (the First Minister) tell me whether before the referendum the voters will know what we could lose in those negotiations?

"This is about the politics of other countries and he seems to think that all 27 members of the European Union will sign up to whatever he wants.

"As people doubt what he says, they want to know before the referendum what they might lose."

Mr Rennie asked when Mr Salmond would meet with the EU's 27 member states to discuss Scotland's membership and establish what they might want in return.

Mr Salmond said: "Can I say to Willie Rennie that when he has talked about terms in the past, he has actually stated that Scotland could be forced to adopt the euro. That is one of the key aspects," he said.

But this does "not follow at all".

Mr Salmond said: "For a Liberal Democrat to scaremonger over the euro defies not just the past record of that party but is reducing the debate to a level worthy of a party that has five members."