Exact edge singularities and dynamical correlations in spin-1/2 chains.