Project

Profile

Help

Use of Configuration File in Saxon-EE/C

Added by santanu das about 3 years ago

Continuation of thread https://saxonica.plan.io/boards/4/topics/8248?r=8259.

Support for Configuration file has been added in Saxon/C 1.2.1 release as a patch. I used that patched version and written the following Python code:

import saxonc
proc = saxonc.PySaxonProcessor(license=True, config_file=config_file_path)
proc.set_catalog(catalog_path)
xsltproc = proc.new_xslt30_processor()
xsltproc.set_parameter('runtime_parameter', proc.make_string_value(runtime_parameter))
xsltproc.set_parameter('pipeline_parameter', proc.make_string_value(pipeline_parameter))
xsltproc.set_parameter('script_parameter', proc.make_string_value(script_parameter))
xsltproc.transform_to_file(source_file=input_file_location, stylesheet_file=script,	output_file=output_file_location)

But the code throws the following set of error:

JET RUNTIME HAS DETECTED UNRECOVERABLE ERROR: system exception at 0x00007f9b2ab53d49 Please, contact the vendor of the application. Core dump will be written to "/tmp/core.%e.%p" Extra information about error is saved in the "/tmp/jet_err_11.txt" file.

What is the problem here? Kindly guide.


Replies (3)

Please register to reply

RE: Use of Configuration File in Saxon-EE/C - Added by O'Neil Delpratt about 3 years ago

Hi, is it possible you can run the python script with gdb and paste the output here please ? Thanks

RE: Use of Configuration File in Saxon-EE/C - Added by santanu das about 3 years ago

Hi Neil,

I don't think so. Because I'm using SaxonC and this piece of code as a Lambda function in AWS. The SaxonC used here is licensed. So this setting is not available anywhere else.

Thanks, Santanu

RE: Use of Configuration File in Saxon-EE/C - Added by O'Neil Delpratt about 3 years ago

Ok I see. Please can you send me a repo (python code, XSLT and source file) if possible either on this forum post or privately via email and I will try to reproduce the error.

    (1-3/3)

    Please register to reply