The closest formula would be the one in the patent.
However the nagging issue when scratch mixing anything with ascorbate is preventing the dreaded Fenton reaction (premature oxidation of ascorbate). You need the right iron sequestering agent, or else it will be difficult to predict shelf life.
Alternatively, D-76/ID-11 is very close to XTOL in working characteristics. XTOL is my favourite developer, and rather importantly in the history of black and white chemistry, was basically the first (and last) developer to improve on the D-76 speed-grain-sharpness balance. But the improvements are pretty small, so all things considered it is far easier to scratch mix D-76 than XTOL and get nearly/virtually the same results (same tonality, very slightly different image structure).