Feature #6517
openThere isn't a simple way to verify that Saxon has found and accepted a license file, regardless of edition
0%
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.
Updated by Michael Kay 4 months ago
There's Configuration.isLicensedFeature(LicenseFeature.PROFESSIONAL_EDITION)
Updated by Matt Patterson 4 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...
Updated by Norm Tovey-Walsh 4 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.
Updated by O'Neil Delpratt 7 days ago
We have decided to add:
isLicensed()
getSaxonEdition()
Please register to edit this issue