Framework proposals for elements not taken in account

Post here questions and problems related to editing and publishing DITA content.
NicoAMP
Posts: 97
Joined: Tue Mar 06, 2018 2:07 pm
Contact:

Framework proposals for elements not taken in account

Post 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?
Nicolas Delobel
AmeXio
nicolas.delobel at group.amexio.net
Radu
Posts: 9055
Joined: Fri Jul 09, 2004 5:18 pm

Re: Framework proposals for elements not taken in account

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
NicoAMP
Posts: 97
Joined: Tue Mar 06, 2018 2:07 pm
Contact:

Re: Framework proposals for elements not taken in account

Post 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>
Nicolas Delobel
AmeXio
nicolas.delobel at group.amexio.net
Radu
Posts: 9055
Joined: Fri Jul 09, 2004 5:18 pm

Re: Framework proposals for elements not taken in account

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
NicoAMP
Posts: 97
Joined: Tue Mar 06, 2018 2:07 pm
Contact:

Re: Framework proposals for elements not taken in account

Post by NicoAMP »

Thanks a lot Radu.

I will test this solution.
Nicolas Delobel
AmeXio
nicolas.delobel at group.amexio.net
Post Reply