Invoke "Compare Files" from XSLT Scenario

Are you missing a feature? Request its implementation here.
Dirk.Becker
Posts: 8
Joined: Wed Oct 13, 2010 9:31 am

Invoke "Compare Files" from XSLT Scenario

Post 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
Radu
Posts: 9057
Joined: Fri Jul 09, 2004 5:18 pm

Re: Invoke "Compare Files" from XSLT Scenario

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Dirk.Becker
Posts: 8
Joined: Wed Oct 13, 2010 9:31 am

Re: Invoke "Compare Files" from XSLT Scenario

Post 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
Radu
Posts: 9057
Joined: Fri Jul 09, 2004 5:18 pm

Re: Invoke "Compare Files" from XSLT Scenario

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply