Custom framework + external content references

Post here questions and problems related to oXygen frameworks/document types.
jannylun
Posts: 16

Custom framework + external content references

Fri Dec 13, 2013 5:07 pm

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
Radu
Posts: 5994

Re: Custom framework + external content references

Fri Dec 13, 2013 5:35 pm

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.html#XML_Editor_Authoring_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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
jannylun
Posts: 16

Re: Custom framework + external content references

Fri Dec 13, 2013 5:43 pm

Thanks Radu! I'll look into this on monday, have a nice weekend!

Return to “SDK-API, Frameworks - Document Types”

Who is online

Users browsing this forum: No registered users and 1 guest