First Minister John Swinney and former prime minister Gordon Brown are in attendance at the service at St Giles’ Cathedral in the Scottish capital.