Hi Kristen,

We added an easy way to do this in version 18.0 of Oxygen, for example if you look inside the file "OXYGEN_INSTALL_DIR\frameworks\dita\resources\cc_config.xml" it contains a construct like:

<elementProposals path="section" insertElements="title p"/>

which basically states that when a section is inserted, a title and a p should also be inserted inside it.

More about the "cc_config.xml":

https://www.oxygenxml.com/doc/versions/19.1/ug-editor/topics/configure-elements-attr-cc-individually.html

But unfortunately your clients are using version 17.1.
Ideally they could ask the CMS when they plan to support a newer version of Oxygen.

Otherwise, with version 17.1 of Oxygen a Java extension would need to be implemented:

https://www.oxygenxml.com/doc/versions/20.0/ug-editor/topics/dg-author-content-completion-handler.html

But here's another possible workaround. I'm linking to a specific answer of mine in an older thread started at a time when Oxygen did not have this possibility in the cc_config.xml:

https://www.oxygenxml.com/forum/post31832.html#p31832

Regards,
Radu

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

On 3/23/2018 9:02 PM, Kristen James Eberlein wrote:
Is this handled through the following:

 1. Enabling a preference for the Content Completion Assistant?
 2. Ensuring that the content model for the <foo> element lists <p> as
    the first option?

Best,
Kris

Kristen James Eberlein
Chair, OASIS DITA Technical Committee
Principal consultant, Eberlein Consulting
www.eberleinconsulting.com
+1 919 622-1501; kriseberlein (skype)

On 3/23/2018 2:16 PM, Kristen James Eberlein wrote:

For example, can oXygen be configured so that whenever an author
inserts the <foo> element, that a <p> element is automatically
inserted as a child element?

If so, what is the mechanism and can someone point me to the
appropriate place in the oXygen documentation?

In this case, the DTD requires that <foo> have at least one child
element, but the list of elements permitted by the content model is long.

I'd like to prevent authors encountering a warning that they won't
easily understand, such as the following:


Thanks in advance for the gracious assistance!
--
Best,
Kris

Kristen James Eberlein
Chair, OASIS DITA Technical Committee
Principal consultant, Eberlein Consulting
www.eberleinconsulting.com
+1 919 622-1501; kriseberlein (skype)



_______________________________________________
oXygen-user mailing list
[email protected]
https://www.oxygenxml.com/mailman/listinfo/oxygen-user



_______________________________________________
oXygen-user mailing list
[email protected]
https://www.oxygenxml.com/mailman/listinfo/oxygen-user

_______________________________________________
oXygen-user mailing list
[email protected]
https://www.oxygenxml.com/mailman/listinfo/oxygen-user

Reply via email to