Project

Profile

Help

Feature #6517

open

There isn't a simple way to verify that Saxon has found and accepted a license file, regardless of edition

Added by Matt Patterson 3 months ago. Updated 3 months ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
-
Start date:
2024-08-21
Due date:
% Done:

0%

Estimated time:
Applies to branch:
12, trunk
Fix Committed on Branch:
Fixed in Maintenance Release:
Found in version:
Fixed in version:
SaxonC Languages:
All
SaxonC Platforms:
All
SaxonC Architecture:

Description

With a Saxon EE license, a call to isSchemaAware on the Processor will verify whether or not your EE license has been found and accepted. There's no equivalent for PE.

Some kind of isLicensed() method on Configuration or Processor would be useful.

As backstory, I was trying to figure out whether a customer with a PE license had correctly located their license and to test myself I had to resort to an XPath that made use of Saxon extension functions.

Actions #1

Updated by Michael Kay 3 months ago

There's Configuration.isLicensedFeature(LicenseFeature.PROFESSIONAL_EDITION)

Actions #2

Updated by Matt Patterson 3 months ago

We don't expose the configuration directly in SaxonC, so we need something there... If applied to Saxon J, with isLicensedFeature, you still need to specify which edition, rather than a generic have-i-successfully-provided-my-license-to-saxon...

Actions #3

Updated by Norm Tovey-Walsh 3 months ago

Tangentially related, SaxonCS has a "version" subcommand. I think we should add that to all of the products and it should indicate whether or not a license has been found.

You could persuade me that it should print out the path to the license that it found if it's run with some appropriate debug option.

Please register to edit this issue

Also available in: Atom PDF