Project

Profile

Help

Bug #2318

closed

Function name "lt" not allowed if annotations are present

Added by Michael Kay about 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Category:
XQuery conformance
Sprint/Milestone:
-
Start date:
2015-02-19
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.5, 9.6
Fix Committed on Branch:
9.5, 9.6
Fixed in Maintenance Release:
Platforms:

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

Also available in: Atom PDF