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)

Please register to edit this issue

Also available in: Atom PDF