The general theoretical framework underlying the GNXAS multiple-scattering (MS) data-analysis method for x-ray absorption spectroscopy (XAS) is presented. The main approximations leading to the reduction of the many-body process in that of a photoelectron scattering in an effective potential are summarized. The methods available to expand the extended x-ray-absorption fine-structure chi(k) into physically meaningful terms are described, In particular, emphasis is given to the definition of the irreducible n-body signals gamma((n)) that can be calculated directly by means of linear combinations of continued fractions, or by using their respective multiple-scattering series. It is found that even for an infinite system the expansion of the ch...