Project

Profile

Help

Bug #6209

closed

Saxon functions not available via function-lookup() in module loaded via load-xquery-module()

Added by Mary Holstege 8 months ago. Updated 6 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
XQuery conformance
Sprint/Milestone:
-
Start date:
2023-09-26
Due date:
% Done:

0%

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

Description

I have a module where the call to a Saxon function is encapsulated via function-lookup() (portability)

When I call the encapsulated function directly, it works. If I call the Saxon function directly, it works. But if I load the module via load-xquery-module() then the function-lookup() fails even though the direct call works. The function here is saxon:xquery FWIW, although I don't believe that matters.

Attached code has all four cases: direct.xqy just imports the module and calls things; indirect.xqy uses load-xquery-module() and then tries to call things.

saxon.sh direct.xqy saxon.sh indirect.xqy

(with appropriate mods to paths in saxon.sh and config.xml)


Files

bug20230926.zip (2.88 KB) bug20230926.zip Zip of test code Mary Holstege, 2023-09-26 22:44

Please register to edit this issue

Also available in: Atom PDF