saxon:evaluate in XQuery script
Posted: Wed May 29, 2024 5:37 am
I'm migrating custom refactoring scripts written with XQuery. Those scripts were developed for Oxygen V20.1 and work fine. When I copied those scripts to the 'refactoring' folder of Oxygen V26.1 and executed one of them. Then, I got following error message:
Cannot find a 1-argument function named Q{http://saxon.sf.net/}evaluate()
I looked into the refactoring scripts bundled with V26.1. As a result, the XPath evaluation statement was modified as follows:
V20.1
V26.1
Does this mean XPath evaluation method was changed due to a particular reason?
Could you please provide me with information regarding this matter?
Thank you inadvance,
Naoki
Cannot find a 1-argument function named Q{http://saxon.sf.net/}evaluate()
I looked into the refactoring scripts bundled with V26.1. As a result, the XPath evaluation statement was modified as follows:
V20.1
Code: Select all
let $elements := saxon:evaluate($element_xpath)
Code: Select all
let $elements := local:eval($element_xpath, (./*)[1])
Could you please provide me with information regarding this matter?
Thank you inadvance,
Naoki