Inspecting Saxon Calls from Oxygen

Here should go questions about transforming XML with XSLT and FOP.
sarcanon
Posts: 25

Inspecting Saxon Calls from Oxygen

Tue Aug 22, 2017 8:04 pm

I would like to know if there is some way to view the actual CLI commands sent to Saxon when doing XSLT transformations using Oxygen XML GUI.

Is there a debug log somewhere with the actual exchange between Oxygen and Saxon that records the commands sent and responses received?

Thank you.

Environment:
Oxygen XML Editor 19.0 (Windows 10 x64)
adrian
Posts: 2326

Re: Inspecting Saxon Calls from Oxygen

Wed Aug 23, 2017 11:14 am

Hi,

I would like to know if there is some way to view the actual CLI commands sent to Saxon when doing XSLT transformations using Oxygen XML GUI.
There are no CLI commands involved when Oxygen runs a Saxon transformation. Since both Oxygen and Saxon are Java-based, Oxygen uses the Saxon Java API for all operations. This also makes it possible to debug with Saxon.

What exactly are you looking for?

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
sarcanon
Posts: 25

Re: Inspecting Saxon Calls from Oxygen

Wed Aug 23, 2017 5:16 pm

I'm just curious to see the command parameters that Oxygen is using to invoke Saxon. I may want to explore the possibility of a workflow of invoking XSLT transformations from the command line (called from scripts), and I want be able to compare the results to those produced to transformations produced interactively from Oxygen. Does that make sense?
adrian
Posts: 2326

Re: Inspecting Saxon Calls from Oxygen

Wed Aug 23, 2017 6:45 pm

I see, unfortunately this is not the case as there is no CLI command. What Oxygen does via the Java API does not always have a CLI equivalent, so it's difficult to map one to another. Besides, since Saxon transformations are run within the Oxygen Java VM there are various handlers (e.g. protocol handlers) that Oxygen implements and are only available to Saxon within Oxygen's Java environment.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
sarcanon
Posts: 25

Re: Inspecting Saxon Calls from Oxygen

Wed Aug 23, 2017 10:20 pm

OK. Thank you.
sarcanon
Posts: 25

Re: Inspecting Saxon Calls from Oxygen

Wed Aug 23, 2017 10:26 pm

P.S. One of the reasons I asked was I want to find way to invoke transformations for a subset of XML documents.

Say, for instance, I have a set of 2,500 documents in a directory, but I have modified one or two of them. How can I initiate a series of XSLT transformations only on the modified documents, and not the entire directory? I see no way within Oxygen's user interface to select only XML documents modified after a certain date, and run my transformation scenarios on just those.
adrian
Posts: 2326

Re: Inspecting Saxon Calls from Oxygen

Mon Sep 04, 2017 11:39 am

Hi,

Say, for instance, I have a set of 2,500 documents in a directory, but I have modified one or two of them. How can I initiate a series of XSLT transformations only on the modified documents, and not the entire directory?
Oxygen doesn't make that distinction for you (for "modified files").
I would recommend Eclipse + Oxygen plugin for Eclipse + a version control system (Subversion or git). Eclipse will show you which files are modified locally (if thy are under version control) and maybe you can filter the rest.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
sarcanon
Posts: 25

Re: Inspecting Saxon Calls from Oxygen

Mon Sep 04, 2017 6:12 pm

Thank you for the suggestion.

But rather than going to the effort of installing Eclipse and learning another IDE, I'd rather work through the command line, where I know I can script operations exactly the way I want. I'm hoping all I will need to do is figure out how to work with Saxon's command line API.

Thanks again.

Return to “XSLT and FOP”

Who is online

Users browsing this forum: No registered users and 0 guests