Getting JSON Output from WebWorks

Version

Date

Changes

Author

1.0

June 17, 2013

Initial version.

Lief

Description

Our Development team has a web-based UI behind which they want the context sensitive help in JSON. The oXygen Editor has built-in a XML-to-JSON conversion. I would like to use WebWorks to produce JSON rather than oXygen -- merely for a standardization purpose. The oXygen XML-to-JSON output is a one-to-one conversion; there is no conref or key resolution. In our view this is a deficiency -- one that we currently work around by not using conrefs or keys. A significant benefit of using ePublisher would be to have the DITA-OT resolve the conrefs and keys to produce the WIF file from which the final JSON would be produced.

I assume the proper format in WebWorks is XML + XSL, and it is the one I chose for this wiki project.

From what I can tell, these files (at a minimum) must be modified/added. I am not entirely sure how though:

There is a publicly available XML-to-JSON XSL stylesheet here: http://www.bramstein.com/projects/xsltjson/ It can be included in any WebWorks stylesheet and used to convert XML to XSL.

Although specific to oXygen, this topic may be helpful in setting expectations for output (see what needs to be suppressed in the second bullet below): http://www.oxygenxml.com/forum/topic6852.html

I've included two JSON output files.

CustomOutputJSON.zip

What's the next step?

DevCenter/Projects/JSON Output (last edited 2013-06-18 14:41:30 by LiefErickson)