Scotland, Independence and the European Union

An unusual situation exists where there seems to be no formal mechanism within the EU over what would happen if Scotland separated from the UK and sought EU membership.