We define and study the properties of Darboux-type transformations between Sturm–Liouville problems with boundary conditions containing rational Herglotz–Nevanlinna functions of the eigenvalue parameter (including the Dirichlet boundary conditions). Using these transformations, we obtain various direct and inverse spectral results for these problems in a unified manner, such as asymptotics of e...