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

sofarocker
Posts: 5
Joined: Mon Jun 01, 2015 3:28 pm

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

Post 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.
sofarocker
Posts: 5
Joined: Mon Jun 01, 2015 3:28 pm

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

Post 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.
adrian
Posts: 2855
Joined: Tue May 17, 2005 4:01 pm

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

Post 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
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
sofarocker
Posts: 5
Joined: Mon Jun 01, 2015 3:28 pm

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

Post 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
adrian
Posts: 2855
Joined: Tue May 17, 2005 4:01 pm

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

Post 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
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
sofarocker
Posts: 5
Joined: Mon Jun 01, 2015 3:28 pm

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

Post by sofarocker »

Thank you for your help. Now its clear....
Post Reply