Project

Profile

Help

Support #5892

closed

FunctionLibrary.isAvailable method - Clarification on languageLevel parameter

Added by Vishnu Ganesan about 1 year ago. Updated 10 months ago.

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

0%

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

Description

URL: https://www.saxonica.com/documentation11/index.html#!javadoc/net.sf.saxon.functions/FunctionLibrary Saxon version: 11

Interface name:: FunctionLibrary

Method name : isAvailable Parameter that I need clarification: languageLevel

Documentation says: the XPath language level (times 10, e.g. 31 for XPath 3.1)

Clarification needed: Is it always the Xpath language level or could it be xquery language level also depending on the case?

Actions #1

Updated by Michael Kay about 1 year ago

XQuery doesn't define any built-in functions that aren't also available in XPath, so this interface doesn't need to distinguish XPath from XQuery and the same language level applies to both.

Do be aware that although we expose interfaces like this as public, they are not part of the product's external API and are subject to change from one release to the next. There's also a possibility that some interfaces could cease to be public if/when we adopt the Java module system.

Actions #2

Updated by Vishnu Ganesan about 1 year ago

Thanks for the quick reply Michael Kay,

Regarding your second point: We have a use case, where we have to extend FunctionLibrary, do we have any other alternate option in-case if the current interfaces are not exposed in the future releases?

Actions #3

Updated by Michael Kay 10 months ago

  • Status changed from New to Closed

Please register to edit this issue

Also available in: Atom PDF