Add "Format and Indent" postprocess option to XSLT Scenario

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

Add "Format and Indent" postprocess option to XSLT Scenario

Post by Dirk.Becker » Sat May 28, 2016 7:47 pm

Hi,

In some cases I prefer Oxygen's own "Format and Indent" action over the results of xslt:output="xml" xslt:indent="yes", even with spacing specified. The latter is just too - spacious.

Could you please add your algorithm as a post processor option to the XSLT scenarios? Or is it already available as XSLT so I could specify it as additional XSLT?

I understand there is also a "Format and Indent on Open", but I have other files where I have to preserve the original formatting.

Thanks,
Dirk

adrian
Posts: 2579
Joined: Tue May 17, 2005 4:01 pm

Re: Add "Format and Indent" postprocess option to XSLT Scenario

Post by adrian » Tue May 31, 2016 11:40 am

Hello,

The "Format and Indent" operation from Oxygen is implemented in Java, it's not available as XSLT.

I have submitted a feature request to our issue tracking tool for a transformation output formatting option. This will be analyzed and implemented in a future version of Oxygen.
We will notify this thread when it is implemented.

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

SLDirector
Posts: 1
Joined: Fri Oct 07, 2011 9:09 pm

Re: Add "Format and Indent" postprocess option to XSLT Scenario

Post by SLDirector » Mon Oct 21, 2019 3:31 pm

On May 31, 2016 Adrian responded to Dirk Becker query that format and indent processing could be added to XSLT scenarios in future versions of Oxygen. I'm using version 21.0 but don't see it yet. I also strongly desire this to reduce the default over abundant 3-space indentation. Have I missed the addition? If so please inform me. If not, any progress in implenting this feature?

adrian
Posts: 2579
Joined: Tue May 17, 2005 4:01 pm

Re: Add "Format and Indent" postprocess option to XSLT Scenario

Post by adrian » Tue Oct 22, 2019 9:56 am

Hello,

It was decided it shall not be implemented, for now. I've added another vote.

One workaround is to configure the transformation scenario to open the result in an editor (Output > Open in Editor) and enable the option "Format and Indent the document on open" (menu > Options > Preferences, Editor > Format, "Format and Indent" subsection). Note, however, that this option will cause all documents to be formatted on open.

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

chrispitude
Posts: 72
Joined: Thu May 02, 2019 2:32 pm

Re: Add "Format and Indent" postprocess option to XSLT Scenario

Post by chrispitude » Sat Nov 09, 2019 8:12 pm

Is this also the algorithm used when DITA content is edited or rewrapped?

I've been looking for a way to rewrap all the DITA files in my project. The reason for this is that my FrameMaker-to-DITA conversion code formats it one way, but then Oxygen XML Author formats it another way whenever the files are edited. It would be great if I could format the output of conversion to Oxygen's format, so that the style is consistent from the beginning.

adrian
Posts: 2579
Joined: Tue May 17, 2005 4:01 pm

Re: Add "Format and Indent" postprocess option to XSLT Scenario

Post by adrian » Mon Nov 11, 2019 1:08 pm

Hello chrispitude,
It would be great if I could format the output of conversion to Oxygen's format, so that the style is consistent from the beginning.
In that case you can use the menu > Tools > Format and Indent Files tool on the converted DITA content.

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

chrispitude
Posts: 72
Joined: Thu May 02, 2019 2:32 pm

Re: Add "Format and Indent" postprocess option to XSLT Scenario

Post by chrispitude » Tue Nov 12, 2019 4:07 pm

Perfect - thank you Adrian!

Post Reply