Aims: The path towards robust near-infrared extensions of stellar population models involves the confrontation between empirical and synthetic stellar spectral libraries across the wavelength ranges of photospheric emission. Indeed, the theory of stellar emission enters all population synthesis models, even when this is only implicit in the association of fundamental stellar parameters with empirical spectral library stars. With its near-ultraviolet to near-infrared coverage, the X-shooter Spectral Library (XSL) allows us to examine to what extent models succeed in reproducing stellar energy distributions (SEDs) and stellar absorption line spectra simultaneously. Methods: As a first example, this study compares the stellar spectra of XSL w...