Can I export HTML5 into one page?

Oxygen general issues.
Stacey
Posts: 63
Joined: Tue Mar 14, 2017 12:36 am

Can I export HTML5 into one page?

Post by Stacey »

I'm trying to move documents from oXygen to Confluence, and the Microsoft Word as a go-between option isn't working very well. Someone mentioned copying and pasting directly from a website had worked well or them.
We generate our content and post it online, but it's created so that each topic is it's own page (works well for a website).
Is there a way to generate it so all the topics are output together on one page?
Radu
Posts: 9434
Joined: Fri Jul 09, 2004 5:18 pm

Re: Can I export HTML5 into one page?

Post by Radu »

Hi Stacey,
If you open the main DITA Map in the Oxygen DITA Maps Manager view, then use the "Configure Transformation Scenarios" toolbar button there, in the "Configure Transformation Scenarios" dialog you should be able to duplicate and edit the "DITA Map XHTML" transformation scenario. In the Parameters list there should be a "root-chunk-override" param which you can set to the value to-content, then try to publish using the new transformation scenario, this should generate I think a single XHTML file with all topics inside it.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Stacey
Posts: 63
Joined: Tue Mar 14, 2017 12:36 am

Re: Can I export HTML5 into one page?

Post by Stacey »

Hi Radu:
It seemed to work well enough if I added it to the map itself (not the transformation scenario).
Follow up: Is there a way to hide/remove all of the images on export?
When I copied and pasted into Confluence, most things looked okay, but the images could not be shown. I don't want to get rid of the images or alter them in the document (we use key refs), but if I removed them from appearing in this transformations scenario, maybe I could just copy and paste the text and add a PDF version for image reference.
Radu
Posts: 9434
Joined: Fri Jul 09, 2004 5:18 pm

Re: Can I export HTML5 into one page?

Post by Radu »

Hi,
Not sure, maybe you can use our Find/Replace in Files dialog to search through the entire HTML output folder with a regular expression which matches all <img...> tags and replace them with the empty string.
Otherwise you would probably need to create a DITA OT plugin which somehow extends the XHTML plugin and skips copying image references to the generated XHTML files.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply