We have calculated the energy distribution of secondary electrons observed in core-level XPS or core-level synchrotron photoemission experiments on Al. The secondary electrons are produced when the photoexcited primary electrons scatter inelastically from