Priority of custom cc_config.xml

Post here questions and problems related to oXygen frameworks/document types.
hutz
Posts: 8

Priority of custom cc_config.xml

Tue Mar 07, 2017 11:28 am

Hello,

Our custom DITA frameworks do not touch do not touch but only inherit resources from the baseFramework-s.
Is there a cleaner way to override cc_config.xml than moving the reference to ${baseFramework}/resources/ under ${framework}/resources/?

I am still using the default dita-1.2-for-xslt2* Schematrons in conjunction with our custom so I do not want to remove the reference to ${baseFramework}/resources/.

Thanks,
François
Radu
Posts: 5090

Re: Priority of custom cc_config.xml

Tue Mar 07, 2017 11:40 am

Hi François,

So if you edit the framework extension that you already have and go to the "Classpath" tab, add a reference to ${framework}/resources/, promote that reference to the top of the list, then create a "resources" folder in your framework extension folder containing the custom cc_config.xml, your cc config will start to be used instead of the base one.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
hutz
Posts: 8

Re: Priority of custom cc_config.xml

Tue Mar 07, 2017 1:54 pm

Thanks - that's what I had tried on my end and I confirm it works as you said (I guess that's because with the cc assistant, oXygen expects exactly "cc_config.xml" as said in the doc) https://www.oxygenxml.com/doc/versions/ ... config.xml

Regards,
François
Radu
Posts: 5090

Re: Priority of custom cc_config.xml

Tue Mar 07, 2017 2:26 pm

Hi François,

Glad this works for you. Oxygen basically looks in all the folders specified in the classpath for that specific named resource. This makes it possible to overwrite this resource (and other resources available in the base "resources" folder) from a framework extension.

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

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

Who is online

Users browsing this forum: No registered users and 2 guests