High resolution x-ray spectroscopy, a perspective for plasma diagnostics