Page 1 of 1

JSON TO XML file and creating style sheet

Posted: Wed Jun 06, 2018 12:57 pm
by Sreeram891
Hello team,

I am currently working for a company where i want to streamline the process of API documentation from word documents to XML documents.

So, my idea is to get an JSON file from developer where the APIs information is written and convert that JSON file to XML using Oxygen XML Editor and prepare a document with that XML file.

My question is, can we prepare a stylesheet for that XML file and convert that to multiple outputs so that the end user can use the document?

Also, i want to prepare a stylesheet so that company's brand guideline can also be included in the document.


Regards,
Sreeram

Re: JSON TO XML file and creating style sheet

Posted: Wed Jun 06, 2018 2:42 pm
by Radu
Hi Sreeram,

Once you have the XML content you can create an XSLT stylesheet in Oxygen which applied on the XML content can generate HTML output.
XSLT tutorial:

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

or if you want to obtain PDF output, Oxygen comes with an engine called Chemistry which allows you to create a CSS and use it to obtain a PDF from the XML content:

https://www.oxygenxml.com/doc/versions/ ... chemistry/

Regards,
Radu