Link to external file content

Post here questions and problems related to editing and publishing DITA content.
plumblei
Posts: 26
Joined: Mon Feb 18, 2013 5:44 pm

Link to external file content

Post by plumblei »

Hi.

We have a number of source code files, and we want to insert their code to DITA topics. Is it possible to do so like it's done with images - to put a link to a source code file, and if its content changes it also changes in a topic?
Radu
Posts: 9477
Joined: Fri Jul 09, 2004 5:18 pm

Re: Link to external file content

Post by Radu »

Hi,

In a DITA <codeblock> you can add a <coderef> element.
More about this in the DITA 1.2 specs:

http://docs.oasis-open.org/dita/v1.2/os ... deref.html

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply