We've changed the code in 9.5 for IdentityTransformer so it should work there the way you expect. I'm not sure why we didn't retrofit the change to 9.4. We were probably being over-cautious; it's the kind of change that can be right for one application and wrong for another.

Michael Kay
Saxonica


On 17 May 2013, at 22:28, Greg Sharek wrote:

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
------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
saxon-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/saxon-help