DITA to text - which XSL transform ?
Posted: Tue Aug 26, 2014 11:06 pm
This seems like such an obvious question, but I've scoured the oXygen forums, googled, scoured the ePublisher/WebWorks forums, but... I still cannot find a transform for DITA to TXT.
Does such a thing exist?
Here's my setup:
* <oXygen/> XML Author 15.1, build 2013110816.
* Antenna House FO processor.
* ePublisher 2013.3.
* PDF output to date, but looking to add TXT output (for Release Notes, for example).
* Using bookmaps (not ditamaps).
I found an old topic in the oXygen forums, http://www.oxygenxml.com/forum/topic1753.html, but it is for DocBook, so irrelevant. (I tried to use it, and the root element of my bookmap, or even ditamap, is incorrect for the indicated transform.)
I'm happy to purchase one; it certainly doesn't need to be freeware. But I do not want to have to write my own XSLT, despite the many resources that seem to say that that's required. I'm open to engaging a consultant to write a custom XSLT, but it seems like it should be unnecessary.
I did try using the RTF transform that's available with DITA OT and then, from Word, saving as TXT. But the result is *really* plain text, and hard to glean any sort of a structure from it.
What I'm really looking for is something along the following lines:
* Heading 1 might map to a style that is numbered and has double-dashed lines above and below:
====================================
1.0 Overview
====================================
* Heading 2 might have single dashed lines above and below:
--------------------------------------------------
Requirements
--------------------------------------------------
* Lower-level headings (which should be rare) might have single dashed lines below:
Lower-Level Heading
-------------------
* And list styles would use the asterisk instead of a bullet symbol and indentation:
* list item 1
* list item 2
Thanks very much!
-Monique
Does such a thing exist?
Here's my setup:
* <oXygen/> XML Author 15.1, build 2013110816.
* Antenna House FO processor.
* ePublisher 2013.3.
* PDF output to date, but looking to add TXT output (for Release Notes, for example).
* Using bookmaps (not ditamaps).
I found an old topic in the oXygen forums, http://www.oxygenxml.com/forum/topic1753.html, but it is for DocBook, so irrelevant. (I tried to use it, and the root element of my bookmap, or even ditamap, is incorrect for the indicated transform.)
I'm happy to purchase one; it certainly doesn't need to be freeware. But I do not want to have to write my own XSLT, despite the many resources that seem to say that that's required. I'm open to engaging a consultant to write a custom XSLT, but it seems like it should be unnecessary.
I did try using the RTF transform that's available with DITA OT and then, from Word, saving as TXT. But the result is *really* plain text, and hard to glean any sort of a structure from it.
What I'm really looking for is something along the following lines:
* Heading 1 might map to a style that is numbered and has double-dashed lines above and below:
====================================
1.0 Overview
====================================
* Heading 2 might have single dashed lines above and below:
--------------------------------------------------
Requirements
--------------------------------------------------
* Lower-level headings (which should be rare) might have single dashed lines below:
Lower-Level Heading
-------------------
* And list styles would use the asterisk instead of a bullet symbol and indentation:
* list item 1
* list item 2
Thanks very much!
-Monique