Page 1 of 1

A lot dtd-xml Files in a folder to convert in one epub

Posted: Wed Aug 05, 2015 12:21 pm
by sofarocker
Hello,

i have a folder with a lot of xml-dtd files. I would like convert this files a one epub-file with a toc, chapters and articels. Is this possible with oxygen17? i was appreciated when somebody gives me a step by step introduction.

Re: A lot of dtd-xml Files in a folder to convert in one epub

Posted: Wed Aug 05, 2015 12:30 pm
by sofarocker
sofarocker wrote:Hello,

i have a folder with a lot of xml-dtd files. I would like convert this files a one epub-file with a toc, chapters and articels. Is this possible with oxygen17? i was appreciated when somebody gives me a step by step introduction.

Re: A lot dtd-xml Files in a folder to convert in one epub

Posted: Wed Aug 05, 2015 2:58 pm
by adrian
Hi,

If your XML source files are in DocBook format you can run the DocBook EPUB transformation scenario.
There's a video demonstration on our web site showing how to do this:
http://www.oxygenxml.com/demo/Epub.html
Select Publish to EPUB from the left side TOC to skip directly to that part of the video.

Regards,
Adrian

Re: A lot dtd-xml Files in a folder to convert in one epub

Posted: Wed Aug 05, 2015 3:58 pm
by sofarocker
Thank you Adrain for your fast answer. The video demonstration is clear, but i have a lot of xml files (perhaps over 70). I would like merge this xml files in a one epub-file. When i follow the video tutorial the i have many books for one issue. Do you know a workaround, how can i solve may problem?

Regards

Re: A lot dtd-xml Files in a folder to convert in one epub

Posted: Wed Aug 05, 2015 4:32 pm
by adrian
Hi,

There's no way to automatically merge them. If you got them from someone else, check if you already have a master XML file that links them all together. If you don't, you'll have to create this file.
One way to link them together is to use external entities as seen in this demo:
http://www.oxygenxml.com/demo/Working_W ... dules.html

Another way is to use XInclude:
http://www.sagehill.net/docbookxsl/Modu ... ngXinclude
Have a look at the samples that Oxygen provides for DocBook, samples\docbook\v5\sampleXInclude.xml.

After you have created (or identified) this master file, you can transform it to EPUB.

Regards,
Adrian

Re: A lot dtd-xml Files in a folder to convert in one epub

Posted: Thu Aug 06, 2015 10:02 am
by sofarocker
Thank you for your help. Now its clear....