Am 28.03.2019 um 11:48 schrieb nikos dimitrakas:
Hi!
Is there something in BaseX that prohibits using higher order functions in XSLT (called with xslt:transform)?
for-each($somenodes, function($q) { string($q) })
and
for-each($somenodes, string#1)
both work in XQuery in BaseX, but when I use the same call in an XSLT that I call with xslt:transform, I get the following message
XPST0003: Inline functions require support for higher-order-functions, which needs Saxon-PE or higher. I am using Saxon EE 9.9.1.2 (also tried PE 9.9.1.2)
The XSLT works fine if I run it with Saxon directly without using BaseX and the function xslt:transform. Is there something I can do to get this to work, or is this out of my control?
Do you get other Saxon EE or PE only features to work when using it from BaseX? It might be that your Saxon EE license is not found and in that case I think Saxon EE or PE fall back to only offer HE features.
So make sure the Saxon license file is on the class path.