A method for making a material of formula LixM1-zDzPO4, where M is one or more transition metals, D represents one or more elements selected from the group consisting of Mg, Ca, Sr, Ba, Ti, Zn, B, Al, Ga, In, Si, Ge, Sc, Y, and rare earth elements, 0.8=x=1.2 and 0=z=0.2, the method comprising the steps of: a) formin...