This is my recollection of providing EE/PE/HE choices for xmlsh.

You need the corresponding .jar file.

 

 

----------------------------------------

David A. Lee

dlee@calldei.com

http://www.xmlsh.org

 

From: Greg Sharek [mailto:greg.sharek@RACKSPACE.COM]
Sent: Friday, May 17, 2013 5:24 PM
To: saxon-help@lists.sourceforge.net
Subject: [saxon] Does IdentityTransformer requires a license in SaxonEE 9.4.0.6?

 

Hi all,

 

I'm working on a project which includes SaxonEE, but allows the user to use SaxonHE if they don't have a Saxon license.    Our "no license" code path uses net.sf.saxon.TransformerFactoryImpl.

 

I'm getting a license error where I don't think I should be getting one.  Here are the 2 scenarios

1.       No license, sourcing SaxonEE jar

1.       Uses net.sf.saxon.TransformerFactoryImpl

2.       Code gets reference to IdentityTransformer

3.       Get license error when attempting transform:

net.sf.saxon.trans.LicenseException: License file saxon-license.lic not found. Tried in file:/Users/rona6028/.m2/repository/net/sf/saxon/saxon-ee/9.4.0.6/saxon-license.lic, and classpath

at com.saxonica.config.Verifier.loadLicense(Verifier.java:142)

at com.saxonica.config.ProfessionalConfiguration.loadLicense(ProfessionalConfiguration.java:376)

at com.saxonica.config.EnterpriseConfiguration.checkLicensedFeature(EnterpriseConfiguration.java:152)

at net.sf.saxon.expr.instruct.Executable.setSchemaAware(Executable.java:758)

at net.sf.saxon.IdentityTransformer.transform(IdentityTransformer.java:30)

at com.rackspace.papi.components.translation.xslt.xmlfilterchain.XmlFilterChainExecutor.executeChain(XmlFilterChainExecutor.java:158)

 

1.       No license, sourcing SaxonHE jar

1.       Uses net.sf.saxon.TransformerFactoryImpl

2.       Gets reference to IdentityTransformer

3.       No license error with transform.

The only difference is referencing the SaxonHE jar vs the SaxonEE jar.  Am I mistaken that this isn't working as expected?

 

Thanks,

 

Greg