Finite size scaling and crossover phenomena: the XY chain in a transverse field at zero temperature