Page 1 of 1

Invoke "Compare Files" from XSLT Scenario

Posted: Fri May 27, 2016 1:00 pm
by Dirk.Becker
In the output panel of the XSLT Scenario there is a checkbox "Im Editor öffnen" (open in editor?)
I would prefer to open both input and output within the built-in file differences tool, so I can revisit and manually apply changes.

Thanks,
Dirk

Re: Invoke "Compare Files" from XSLT Scenario

Posted: Fri May 27, 2016 1:31 pm
by Radu
Hi Dirk,

So what you are probably doing is using XSLT as a way to fix up certain problems in an XML, right?
Maybe you should take a look at our refactoring operations support which allow you to define custom refactoring stylesheets and also offer a preview when applying the operation on a set of folders:

https://www.oxygenxml.com/doc/versions/ ... ments.html

About your current use case, we do not have such a feature right now. What you could do would be to keep the Diff Files application opened with both input and output XMLs opened in it. Once you run the transformation and the output XML changes, you can switch to the Diff Files and it should detect the file changing on disk and ask for a reload.

Regards,
Radu

Re: Invoke "Compare Files" from XSLT Scenario

Posted: Fri May 27, 2016 7:56 pm
by Dirk.Becker
The use case is described in more detail in my question in the DITA forum.

I'm using an XSLT to automatically maintain sections within DITA documents - actually a large number of those files. The changes are manually revisited in any case. As I frequently change between multiple documents, I always have to point the Diff Files tool towards both files involved, actually I go via Diff Directories. My suggestion would eliminate that step, and of course also the additional "reload changes" dialog.

Regards,
Dirk

Re: Invoke "Compare Files" from XSLT Scenario

Posted: Mon May 30, 2016 9:49 am
by Radu
Hi Dirk,

We'll take this request into account as a possible future improvement.
Maybe in the meantime instead of applying an XSLT transformation scenario you could create an ANT build file which runs the XSLT transformation on the XML file for which the path is received as a paramer and then starts as an external process our "DiffFiles" executable with two arguments, the first being the path to the input file and the second the path to the output file.

Regards,
Radu