Custom framework + external content references

Post here questions and problems related to oXygen frameworks/document types.
jannylun
Posts: 16
Joined: Wed May 20, 2009 2:25 pm

Custom framework + external content references

Post 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
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: Custom framework + external content references

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
jannylun
Posts: 16
Joined: Wed May 20, 2009 2:25 pm

Re: Custom framework + external content references

Post by jannylun »

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