Page 1 of 1

How to enable FeatureKeys.TRACE_EXTERNAL_FUNCTIONS in oXygen XML Editor 20.1, build 2018122403

Posted: Tue Jan 15, 2019 9:17 am
by scalderwood
I am receiving an error message when trying to use a custom Java extension. The error message tells me to:

For diagnostics on calls to Java methods, use the -TJ command line option or set the Configuration property FeatureKeys.TRACE_EXTERNAL_FUNCTIONS

How can I enable the command line option? I see no option for setting either via the UI. (I see the option for setting a custom saxon config file, but I don't know what all I need to set for that, besides the corresponding KVP for the above mentioned property.)

Details:
<oXygen/> XML Editor 20.1, build 2018122403
XSLT engine: Saxon-EE 9.8.0.12

Thanks,
Steven

Re: How to enable FeatureKeys.TRACE_EXTERNAL_FUNCTIONS in oXygen XML Editor 20.1, build 2018122403

Posted: Tue Jan 15, 2019 4:57 pm
by tavy
Hello Steven,

To enable Saxon TRACE_EXTERNAL_FUNCTIONS feature in Oxygen you need to create a Saxon configuration file. For this you can use the "Saxon configuration" new file template. Then crate a transformation scenario for the XSLT document and set the configuration file in the transformation scenario "Advanced options".
You can find more details about transformation scenario "Advanced options" in our user manual:
https://www.oxygenxml.com/doc/versions/ ... l#xslt-tab

The configuration file can look something like this:

Code: Select all


<configuration edition="EE" xmlns="http://saxon.sf.net/ns/configuration">
<global traceExternalFunctions="true"/>
</configuration>
You can find more about Saxon configuration file here:
https://www.saxonica.com/documentation9 ... tion-file/

When you enable "traceExternalFunctions" Saxon will output to the standard error output. Therefore, you need to start the oxygen from command line. For this you need to run oxygen.bat, which is located in the installation directory.

Best Regards,
Octavian

Re: How to enable FeatureKeys.TRACE_EXTERNAL_FUNCTIONS in oXygen XML Editor 20.1, build 2018122403

Posted: Wed Jan 16, 2019 7:27 am
by scalderwood
Thank you! This is exactly what I needed.