Integrating external data into an XML project
This should cover W3C XML Schema, Relax NG and DTD related problems.
-
Mileey
- Posts: 1
- Joined: Wed Dec 03, 2025 1:34 pm
Integrating external data into an XML project
Hi,
I'm working on a technical guide in DITA with Oxygen, and I'd like to automatically include information from an external service for mobile users, such as activation or network coverage data for an eSIM. Has anyone ever tried to retrieve this type of JSON or XML data to generate a table in PDF or WebHelp without breaking validation?
I'm working on a technical guide in DITA with Oxygen, and I'd like to automatically include information from an external service for mobile users, such as activation or network coverage data for an eSIM. Has anyone ever tried to retrieve this type of JSON or XML data to generate a table in PDF or WebHelp without breaking validation?
-
Radu
- Posts: 9600
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Integrating external data into an XML project
Hi,
I created this dita-json open source DITA OT plugin some time ago, it's available here:
https://github.com/oxygenxml/dita-json
Basically as per its samples, one refers in the DITA Map to a JSON file with format="json":
The JSON file gets automatically converted at publishing time first to XML and then an XSLT is applied to it so that it gets converted to a DITA XML topic which has phrases with IDs and the values from the JSON file:
https://github.com/oxygenxml/dita-json/ ... o-dita.xsl
Then from another DITA XML topic one can use conkeyref to refer to content from the JSON file.
Regards,
Radu
I created this dita-json open source DITA OT plugin some time ago, it's available here:
https://github.com/oxygenxml/dita-json
Basically as per its samples, one refers in the DITA Map to a JSON file with format="json":
Code: Select all
<keydef href="ui-strings.json" format="json" keys="uiStrings"/>
https://github.com/oxygenxml/dita-json/ ... o-dita.xsl
Then from another DITA XML topic one can use conkeyref to refer to content from the JSON file.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service