Invoke "Compare Files" from XSLT Scenario

Are you missing a feature? Request it's implementation here.
Dirk.Becker
Posts: 8

Invoke "Compare Files" from XSLT Scenario

Fri May 27, 2016 1:00 pm

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: 5757

Re: Invoke "Compare Files" from XSLT Scenario

Fri May 27, 2016 1:31 pm

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/18.0/ug-editor/topics/refactoring-xml-documents.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

Re: Invoke "Compare Files" from XSLT Scenario

Fri May 27, 2016 7:56 pm

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: 5757

Re: Invoke "Compare Files" from XSLT Scenario

Mon May 30, 2016 9:49 am

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

Return to “Feature Request”

Who is online

Users browsing this forum: No registered users and 0 guests