While now Xavi is linked to AC Milan to start working there and fill the place of Paulo Fonseca in this team. Xavi was not working for any team after he left Barcelona.
I will say bringing in Xavi is going to be a good move. Because you know AC Milan are definitely not finding the results that they are looking for and there is no point in keeping a coach that you don't like or you are not getting good results from.
You know, Xavi did not bring bad results with Barcelona at all. He also brought in a La Liga title for Barcelona while he was the coach. The only reason why it seems like the decision of sacking him is not that bad is because Hansi Flick is doing a good job. So I think bringing him as the new coach can actually be a very good decision for the Rossoneri management. But I don't know how he is going to adapt to a different league. Trial and error is something that no club likes to do especially with coaches.