Frugoni, Traetta's librettist in Parma completely reworked the original French version by abbé Pellegrin, which itself had been based on Racine, in its turn stemming ultimately from ancient Greek roots - the "Hippolytus" of Euripides.