The XMM Cluster Survey: a new cluster candidate sample and detailed selection function