Embedding an HTML file in DITA directly from Github
Oxygen general issues.
-
- Posts: 20
- Joined: Fri Feb 20, 2015 10:25 am
Embedding an HTML file in DITA directly from Github
Hi,
I was wondering if it's possible to embed HTML files into DITA XML directly from Github, so that the content of the HTML files would be shown in the XHTML deliverable of the DITA file - preferably inside a <codeblock> element. We would like to demonstrate our front-end files in our documentation, and by doing it like this, the demonstration files would always stay up-to-date, because they'd be served from their original source.
I tried playing with the <object> element, but I only managed to create a link to the file in Github. I also tried Gist-it http://gist-it.appspot.com/, but couldn't figure out, how to get the Javascript to print anything in the resulting XHTML file.
I'd appreciate any ideas
I was wondering if it's possible to embed HTML files into DITA XML directly from Github, so that the content of the HTML files would be shown in the XHTML deliverable of the DITA file - preferably inside a <codeblock> element. We would like to demonstrate our front-end files in our documentation, and by doing it like this, the demonstration files would always stay up-to-date, because they'd be served from their original source.
I tried playing with the <object> element, but I only managed to create a link to the file in Github. I also tried Gist-it http://gist-it.appspot.com/, but couldn't figure out, how to get the Javascript to print anything in the resulting XHTML file.
I'd appreciate any ideas

-
- Posts: 9445
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Embedding an HTML file in DITA directly from Github
Hi,
In DITA a codeblock element can have a coderef element inside it like:
A problem would be that the DITA Open Toolkit publishing engine does not retrieve contents from resources other than local files on disk.
But if you are running the transformation from Oxygen and you edit the transformation scenario, there is a parameter called fix.external.refs.com.oxygenxml which can be set to yes in order to make this work.
Regards,
Radu
In DITA a codeblock element can have a coderef element inside it like:
Code: Select all
<codeblock outputclass="language-xml"><coderef href="http://www.oxygenxml.com/doc/ug-oxygen/#topics/installation.intro.html" format="html"/></codeblock>
But if you are running the transformation from Oxygen and you edit the transformation scenario, there is a parameter called fix.external.refs.com.oxygenxml which can be set to yes in order to make this work.
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)
- ↳ 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