Project

Profile

Help

Bug #5404

Updated by O'Neil Delpratt almost 2 years ago

I tried to set the location of the license based using the configuration property on the SaxonProcessor but this fails to work. 

 See example code below: 

 ~~~ python 
 from saxonc import * 

 with PySaxonProcessor(license=True) as saxonproc2: 
     saxonproc2.set_configuration_property('http://saxon.sf.net/feature/licenseFileLocation', '/location/saxon-license.lic') saxonproc2.set_configuration_property("http://saxon.sf.net/feature/licenseFileLocation", '/location/saxon-l> 
     trans = saxonproc2.new_xslt30_processor() 

     executable = trans.compile_stylesheet(stylesheet_file='exampleEE.xsl') 
     if executable is None: 
        exit() 
     executable.set_property("!omit-xml-declaration", "yes") 
     sw = executable.call_template_returning_string("main") 
     print("Result=",sw) 
 ~~~ 

Back