wcandillon / xqlint

JSONiq & XQuery Quality Checker
Apache License 2.0
52 stars 22 forks source link

local: function prefix in Modules #72

Open JonathanRowell opened 7 years ago

JonathanRowell commented 7 years ago

In a module all functions must be declared in the modules namespace. If not an error is to be raised XQST0048. This is implemented correctly. For private functions an annotation must be used. However the specification also allows the prefix local: to be used. It would be very nice to use this prefix in both library modules and queries.

joewiz commented 7 years ago

You can't now? If you do and get an error, what error is it?

JonathanRowell commented 7 years ago

XQST0048. The spec says that an implementation may allow the use of local: but is not required to do so.