Trim function in XPath 1.0?

Viewed 19410

Is there a trim function in XPath 1.0, that can be used like this:

.//a[trim(.) = @href)]

?

1 Answers

There is normalize-space(), which does a little more than trimming, but which may be fine for URLs.

Related