But it can be ends-with(@href,concat('/',$filename))

Although the slash should probably be the system property file separator if we might mean a file path file name.
On Jan 14, 2022, 11:15 -0500, Eliot Kimber <eliot.kimber@servicenow.com>, wrote:
It can’t be ends-with() because there might be a fragment identifier in the @href value. Cheers, E. _____________________________________________Eliot KimberSr Staff Content EngineerO: 512 554 9368M: 512 554 9368servicenow.comLinkedIn | Twitter | YouTube | Facebook From: Liam R. E. Quin <liam@fromoldbooks.org>Date: Friday, January 14, 2022 at 10:14 AMTo: Eliot Kimber <eliot.kimber@servicenow.com>, basex-talk@mailman.uni-konstanz.de <basex-talk@mailman.uni-konstanz.de>Subject: Re: [basex-talk] Where-Used: Performance Improvement Strategies?[External Email]

On Fri, 2022-01-14 at 15:41 +0000, Eliot Kimber wrote:>>> $topics//*[tokenize(@href, '/') = $filename]
Is this really, ends-with(@href, $filename) ?
--Liam Quin, https://urldefense.com/v3/__https://www.delightfulcomputing.com/__;!!N4vogdjhuJM!SWefjHp1QDMTJfLSIZHicmuDUqM7GEX7HxoJl5vbZh51kMnsyOQqlLyOsrfYiZJp42uOnw$Available for XML/Document/Information Architecture/XSLT/XSL/XQuery/Web/Text Processing/A11Y training, work & consulting.Barefoot Web-slave, antique illustrations:  https://urldefense.com/v3/__http://www.fromoldbooks.org__;!!N4vogdjhuJM!SWefjHp1QDMTJfLSIZHicmuDUqM7GEX7HxoJl5vbZh51kMnsyOQqlLyOsrfYiZJv_3YRMg$