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

Here should go questions about transforming XML with XSLT and FOP.
scalderwood
Posts: 3
Joined: Sat May 28, 2011 9:28 pm

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

Post by scalderwood » Tue Jan 15, 2019 9:17 am

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

tavy
Posts: 187
Joined: Thu Jul 01, 2004 12:29 pm

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

Post by tavy » Tue Jan 15, 2019 4:57 pm

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
Octavian Nadolu
<oXygen/> XML Editor
http://www.oxygenxml.com

scalderwood
Posts: 3
Joined: Sat May 28, 2011 9:28 pm

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

Post by scalderwood » Wed Jan 16, 2019 7:27 am

Thank you! This is exactly what I needed.

Post Reply