Project

Profile

Help

Bug #2497

closed

function-lookup should not fail if built-in function not found

Added by Priscilla Walmsley about 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
XPath conformance
Sprint/Milestone:
Start date:
2015-11-16
Due date:
% Done:

100%

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

Description

If an XQuery query calls function-lookup with a name in the built-in functions namespace, it fails with XPST0017. I would have thought it should just return the empty sequence, since no function with that name and arity is found. For example:

function-lookup(xs:QName("fn:foo"),1)

or

function-lookup(xs:QName("fn:upper-case"),4)

Actions #1

Updated by Michael Kay about 9 years ago

  • Category set to XPath conformance
  • Status changed from New to Resolved
  • Assignee set to Michael Kay
  • Priority changed from Low to Normal
  • Found in version changed from 9.6.0.5 to 9.6

Thanks. I've added test cases to QT3 and have committed a patch on the 9.6 and 97 branches.

Actions #2

Updated by O'Neil Delpratt almost 9 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100
  • Fixed in version set to 9.6.0.8

Bug fix applied in the Saxon 9.6.0.8 maintenance release

Actions #3

Updated by O'Neil Delpratt almost 9 years ago

  • Applies to branch 9.6 added
  • Fix Committed on Branch 9.6 added
  • Fixed in Maintenance Release 9.6.0.8 added
Actions #4

Updated by O'Neil Delpratt almost 9 years ago

  • Sprint/Milestone set to 9.6.0.8

Please register to edit this issue

Also available in: Atom PDF