Add "Format and Indent" postprocess option to XSLT Scenario
Are you missing a feature? Request its implementation here.
-
- Posts: 8
- Joined: Wed Oct 13, 2010 9:31 am
Add "Format and Indent" postprocess option to XSLT Scenario
Post by Dirk.Becker »
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
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
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: Add "Format and Indent" postprocess option to XSLT Scenario
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
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
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 1
- Joined: Fri Oct 07, 2011 9:09 pm
Re: Add "Format and Indent" postprocess option to XSLT Scenario
Post by SLDirector »
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?
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: Add "Format and Indent" postprocess option to XSLT Scenario
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
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
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 922
- Joined: Thu May 02, 2019 2:32 pm
Re: Add "Format and Indent" postprocess option to XSLT Scenario
Post by chrispitude »
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.
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.
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: Add "Format and Indent" postprocess option to XSLT Scenario
Hello chrispitude,
Regards,
Adrian
In that case you can use the menu > Tools > Format and Indent Files tool on the converted DITA content.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.
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 922
- Joined: Thu May 02, 2019 2:32 pm
Re: Add "Format and Indent" postprocess option to XSLT Scenario
Post by chrispitude »
Perfect - thank you Adrian!
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service