Page 1 of 1

Priority of custom cc_config.xml

Posted: Tue Mar 07, 2017 11:28 am
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

Re: Priority of custom cc_config.xml

Posted: Tue Mar 07, 2017 11:40 am
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

Re: Priority of custom cc_config.xml

Posted: Tue Mar 07, 2017 1:54 pm
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

Re: Priority of custom cc_config.xml

Posted: Tue Mar 07, 2017 2:26 pm
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