Project

Profile

Help

Bug #2993

closed

Saxon does not allow multiple annotations (on an XQuery function/variable) that have the same name.

Added by Michael Kay over 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
XQuery conformance
Sprint/Milestone:
-
Start date:
2016-10-12
Due date:
% Done:

100%

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

Description

There appears to be nothing in the XQuery spec that disallows multiple annotations with the same name. But Saxon rejects it with XPST0003.

If we do allow multiple annotations with the same name, it complicates any API we might provide to access this information. Currently there is no support for annotations in the data model, so it's hard to work out what was intended.

I have created QT3 test cases annotation-37, annotation-38, and annotation-assertion-19 to test this situation.

Please register to edit this issue

Also available in: Atom PDF