开发者

Trim function in XPath 1.0?

开发者 https://www.devze.com 2022-12-16 22:10 出处:网络
Is there a trim function in XPath 1.0, 开发者_开发百科that can be used like this: .//a[trim(.) = @href)]

Is there a trim function in XPath 1.0, 开发者_开发百科that can be used like this:

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

?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消