Trim function in XPath 1.0? December 26, 2023 by Tarik There is normalize-space(), which does a little more than trimming, but which may be fine for URLs.