Actions
Bug #2993
closed![Author: Michael Kay](https://www.gravatar.com/avatar/db6526d63053f09b62e52c2da8b2230a?rating=PG&size=50&default=https%3A%2F%2Fassets.plan.io%2Fimages%2Fdefault_avatar.png)
![Assignee: Michael Kay](https://www.gravatar.com/avatar/db6526d63053f09b62e52c2da8b2230a?rating=PG&size=22&default=https%3A%2F%2Fassets.plan.io%2Fimages%2Fdefault_avatar.png)
Saxon does not allow multiple annotations (on an XQuery function/variable) that have the same name.
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
Actions