Skip to content
Discussion options

You must be logged in to vote

This is not necessary, it already places each one on a new line.

The problem is your filter, it's not smart enough

use this xpath2 filter with the for loop

xpath: string-join(  for $a in //a[ends-with(@href, '-english-version.html')]  return string-join(("Title: ", $a/text(), '<br>URL: ', $a/@href,"<br>"), ''))

That way you dont end up mixing the text() and href of different links

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dgtlmoon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
enhancement New feature or request filters
2 participants
Converted from issue

This discussion was converted from issue #3070 on March 31, 2025 09:59.