Page 1 of 1

Framework proposals for elements not taken in account

Posted: Wed Mar 06, 2019 2:35 pm
by NicoAMP
Hi,

I try to configuring the proposals for elements.

I follow the steps describes here: https://www.oxygenxml.com/doc/versions/ ... attributes

In my framework folder (stored outside of Oxygen installation folder) I have the following resources/cc_config.xml

Code: Select all

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.oxygenxml.com/ns/ccfilter/config http://www.oxygenxml.com/ns/ccfilter/config/ccConfigSchemaFilter.xsd"
xmlns="http://www.oxygenxml.com/ns/ccfilter/config">
<elementProposals path="prolog" insertElements="author metadata"/>
</config>
I references this folder in classpath tab using ${framework}/resources/.

But nothing appends when I insert prolog element.

It works only if I modify directly C:\Program Files\Oxygen XML Editor 21\frameworks\dita\resources\cc_config.xml

My cc_config.xml file is not taken in account in my framework folder. Do you know why it doesn't work?

Re: Framework proposals for elements not taken in account

Posted: Wed Mar 06, 2019 3:47 pm
by Radu
Hi Nicolas,

There might be two problems:

1) Is your framework configuration used when editing DITA content in Oxygen? In the Oxygen main menu "Window->Show view" you can show the "Properties" view. Then open a DITA topic in Oxygen and see if the Properties view shows you the "Document Type" that it uses for the opened XML document.
2) If your framework is an extension of the DITA framework, in that "Classpath" tab did you position the ${framework}/resources/ entry to be the first one in the list?

Regards,
Radu

Re: Framework proposals for elements not taken in account

Posted: Wed Mar 06, 2019 4:03 pm
by NicoAMP
Hi Radu,

Effectively my framework is an extension of the DITA framework.
Now if I put ${framework}/resources/ entry in first position in the "Classpath" tab it works. Thanks :D

I have another question :
When I insert a topic element as a sub-element of topic like above, is it possible to insert a framework topic template file at the place of this sub-element?
If yes, it is possible to choose which template file?

Code: Select all

<topic id="topic_jp4_g45_zgb">
<title></title>
<topic id="topic000">
<title></title>
</topic>
</topic>

Re: Framework proposals for elements not taken in account

Posted: Wed Mar 06, 2019 4:11 pm
by Radu
Hi Nicolas,

You can replace an entry from the content completion window with a custom Author actions.
Something like this:

post51575.html#p51575p

Regards,
Radu

Re: Framework proposals for elements not taken in account

Posted: Wed Mar 06, 2019 5:36 pm
by NicoAMP
Thanks a lot Radu.

I will test this solution.