Bug #2318
closedFunction name "lt" not allowed if annotations are present
100%
Description
From the saxon-help list:
I am trying to use transform.xq (https://github.com/jpcs/transform.xq )
with Saxon and Saxon objects to calling annotated functions lt
https://github.com/jpcs/transform.xq/issues/1
This can be reproduced by this simple XQuery:
++++++++++++++++++++++++++++++++++++++++++++++
xquery version "3.0";
declare default function namespace "http://example.com";
declare %private function lt() as item()*{
()
};
()
++++++++++++++++++++++++++++++++++++++++++++++
Error: System
ID: /home/vdv/projects/lab/presentations/xml-london-2015/transform.xq/lib/Untitled4.xquery
Main validation
file: /home/vdv/projects/lab/presentations/xml-london-2015/transform.xq/lib/Untitled4.xquery
Engine name: Saxon-EE XQuery 9.5.1.7
Severity: fatal
Description: XPST0003: expected "(", found "lt"
Start location: 5:0
URL: http://www.w3.org/TR/xpath20/#ERRXPST0003
Note that the error disappears if you remove the annotation.
Please register to edit this issue