Page 1 of 1

Link to external file content

Posted: Tue Apr 30, 2013 4:20 pm
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?

Re: Link to external file content

Posted: Tue Apr 30, 2013 4:54 pm
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