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.
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.
精彩评论