Hi France - On Sat, Apr 4, 2026, 6:27 AM France Baril via BaseX-Talk < basex-talk@mailman.uni-konstanz.de> wrote:
I am trying to to grab the line and colum number of an expression found with ft:search to better integrate results for dynamic interaction in an XML editor. I was hoping to use saxon:line-number, saxon:character-number, but they are unavailable in BaseX XQuery, only available in xslt:transform. Do you have suggestions on how to extract these details from what's available right now in XQuery?
You might have some luck with wrapping your expression in a try/catch but you'd need to throw some kind of error. The $err:line-number and $err:column-number variables are the first thing that comes to mind. I'm sure someone else has a clever idea though. Hope that's helpful! Best, Bridger