Project

Profile

Help

Bug #6231

closed

Saxon does not recognise function annotations written using Q{uri}local syntax

Added by Michael Kay 6 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
2023-10-24
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
12, trunk
Fix Committed on Branch:
12, trunk
Fixed in Maintenance Release:
Platforms:
.NET, Java

Description

See the new QT4 test case inline-fn-050, but the problem appllies equally to XQuery 3.1

The expression

%Q{_}_ function($x) { $x }(1)

fails

XQST0045  Unrecognized variable or function annotation Q{_}_
Actions #1

Updated by Michael Kay 6 months ago

  • Subject changed from Saxon does not recognised function annotations written using Q{uri}local syntax to Saxon does not recognise function annotations written using Q{uri}local syntax
Actions #2

Updated by Michael Kay 6 months ago

Actually, it works if the namespace URI in the EQName has a colon in it (which it usually will): see test inline-fn-015.

Actions #3

Updated by Michael Kay 6 months ago

Saxon is also disallowing annotations in no namespace (written %Q{}name). There appears to be no rule in the spec to justify this.

Actions #4

Updated by Michael Kay 6 months ago

  • Status changed from New to Resolved
  • Applies to branch 12, trunk added
  • Fix Committed on Branch 12, trunk added
  • Platforms .NET, Java added
Actions #5

Updated by Michael Kay 6 months ago

Note, not fixed on the 11.x branch.

Actions #6

Updated by O'Neil Delpratt 5 months ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100
  • Fixed in Maintenance Release 12.4 added

Bug fix applied in the Saxon 12.4 maintenance release

Please register to edit this issue

Also available in: Atom PDF