?void=this
Added by T Hata about 7 years ago
Looking at "the doc":https://www.saxonica.com/documentation/index.html#!extensibility/functions/function-result, I tried this code:
but it fails:
>java -classpath saxon9ee.jar net.sf.saxon.Transform -it:main -t -xsl:test.xsl Saxon-EE 9.8.0.6J from Saxonica Java version 1.8.0_151 ... Static error at xsl:variable on line 14 column 86 of test.xsl: XPTY0004: Cannot convert result of extension function to required type Q{http://saxon.sf.net/java-type}java.util.Date Errors were reported during stylesheet compilation
Isn't @?void=this@ supposed to make it work?
Replies (1)
RE: ?void=this - Added by Michael Kay about 7 years ago
It seems that the static type inferencing for reflexive extension function calls wasn't updated to take account of ?void=this.
Logged as a bug: https://saxonica.plan.io/issues/3523, verified with a new unit test.
Please register to reply