Priority of custom cc_config.xml

Post here questions and problems related to oXygen frameworks/document types.
hutz
Posts: 10
Joined: Thu Feb 18, 2016 5:15 pm

Priority of custom cc_config.xml

Post by hutz »

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

Re: Priority of custom cc_config.xml

Post by Radu »

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: 10
Joined: Thu Feb 18, 2016 5:15 pm

Re: Priority of custom cc_config.xml

Post by hutz »

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

Re: Priority of custom cc_config.xml

Post by Radu »

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
Post Reply