On the soft X-ray spectrum of cooling flows