XML to DITA XML conversion

Post here questions and problems related to editing and publishing DITA content.
akhoy
Posts: 8
Joined: Tue Jul 25, 2017 12:47 pm

XML to DITA XML conversion

Post by akhoy »

Hi,

I'm trying to convert generic XML data to DITA XML. I was able to find a plugin for converting HTML to DITA (h2d) but none for this. Please let me know if there's any plugin for this and the steps that are needed to be done.

Thanks.
Radu
Posts: 9055
Joined: Fri Jul 09, 2004 5:18 pm

Re: XML to DITA XML conversion

Post by Radu »

Hi,

As the XML data is written in a generic vocabulary you will probably need to write an XSLT stylesheet to convert it to DITA or something else.
You can use Oxygen to create the XSLT stylesheet and apply it over the XML.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
akhoy
Posts: 8
Joined: Tue Jul 25, 2017 12:47 pm

Re: XML to DITA XML conversion

Post by akhoy »

Thanks. Can you please tell me how I can use Oxygen to generate the stylesheet? I'm not that familiar with Oxygen.
Radu
Posts: 9055
Joined: Fri Jul 09, 2004 5:18 pm

Re: XML to DITA XML conversion

Post by Radu »

Hi,

XSLT is not a technology unique to Oxygen, it is a standard for processing and converting XML documents.
And Oxygen allows you to create and run XSLT stylesheets over XML documents:

https://www.oxygenxml.com/doc/versions/ ... heets.html

There are various tutorials for learning XSLT available online:

https://www.w3schools.com/xml/xsl_intro.asp


Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply