Page 1 of 1

XML to DITA XML conversion

Posted: Mon Oct 30, 2017 11:13 am
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.

Re: XML to DITA XML conversion

Posted: Mon Oct 30, 2017 4:09 pm
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

Re: XML to DITA XML conversion

Posted: Tue Oct 31, 2017 8:58 am
by akhoy
Thanks. Can you please tell me how I can use Oxygen to generate the stylesheet? I'm not that familiar with Oxygen.

Re: XML to DITA XML conversion

Posted: Tue Oct 31, 2017 9:11 am
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