A minor XQuery compiler bug in Saxon 9.5.0.2
Replies (2)
Please register to reply
Added by Nikolay Ognyanov over 11 years ago
The XQuery compiler accepts a comma after the last parameter in function declarations. Here is an example which compiles and runs under Saxon-PE 9.5.0.2 :
xquery version "1.0"; declare function local:foo($a,) { $a }; local:foo(1)
The parameter list is defined as
ParamList ::= Param ("," Param)*
So this is clearly a bug albeit a minor one.
Thanks for reporting it. I have logged it here
https://saxonica.plan.io/issues/1838
and have committed a fix.
Thank you. I noticed today that I can file bugs myself and will do that if/when the need be.
Please register to reply