Since the XYZ has already transferred her share of property in the complex to her granddaughter, now the granddaughter is the absolute owner with clear and marketable title to the property.
She only has to execute the registered sale deed in favor of the prospective buyer (provided she is major by age or her guardian has to execute the same after obtaining permission from court).
Besides these details, you may obtain a legal opinion from a local lawyer before venturing into the purchase of this property.