Page 1 of 1

Custom framework + external content references

Posted: Fri Dec 13, 2013 5:07 pm
by jannylun
Hello!

I'm making a custom framework for our custom XML, and I'd like to use similar features as with DITA's conref, that is, pull content from another document into the currently open module.

I'm able to get raw xml content included, but I'd like to get it renderd properly as well (readonly might be fine though).

Code: Select all

foo {
content:"[" oxy_xpath("fn:doc(@href)/(/*)") "]";
}
I couldn't find references to how the conref inclusing is handling when looking in the DITA framework, am I missing something or is this handled outside the framework?

Thanks!

Br,
Jan Nylund

Re: Custom framework + external content references

Posted: Fri Dec 13, 2013 5:35 pm
by Radu
Hi Jan,

Making something eqivalent to the DITA conref expander required a Java extension.
You would need the Author SDK for this:

http://www.oxygenxml.com/oxygen_sdk.htm ... horing_SDK

If in the Document Type Association Preferences page you edit the DITA document type, in the Extensions tab you will see an extensions bundle implementation set up: ro.sync.ecss.extensions.dita.DITAExtensionsBundle.

The same editing dialog has a "Classpath" tab where references to the JAR libraries containing the implementation are made.

The Java code for that implementation is in the SDK. The extensions bundle overrides a method called ro.sync.ecss.extensions.dita.DITAExtensionsBundle.createAuthorReferenceResolver() which is the class responsible for the DITA conref expansion.

Regards,
Radu

Re: Custom framework + external content references

Posted: Fri Dec 13, 2013 5:43 pm
by jannylun
Thanks Radu! I'll look into this on monday, have a nice weekend!