[oXygen-user] [OXYGEN-24088] Wrapping <p> into <note> produces invalid DITA code
Frank Dissinger
frank.dissinger at cgs-oris.com
Tue Jan 21 04:46:33 CST 2025
Hi Radu,
Thank you! Yes, your‘re right:
cc_config.xml:
<elementProposals path="note" insertElements="p"/>
Can I specify that this rule does not get applied when wrapping an element in <note>?
The rule says “… insertElements …”, not “… wrapElements …”.
Regards,
Frank
Von: oXygen-user <oxygen-user-bounces at oxygenxml.com> Im Auftrag von Oxygen XML Editor Support (Radu Coravu)
Gesendet: Dienstag, 21. Januar 2025 11:41
An: oxygen-user at oxygenxml.com
Betreff: Re: [oXygen-user] [OXYGEN-24088] Wrapping <p> into <note> produces invalid DITA code
Hi Frank,
I think you made this specific configuration in the Oxygen DITA framework specific cc_config.xml file.
Regards,
Radu
Radu Coravu
Oxygen XML Editor
On 1/21/25 10:06, Frank Dissinger wrote:
Hi Radu,
Thank you for your reply.
Yes, I think I configured Oxygen to automatically insert <p> as a child when inserting <note>. And, in reply to Stefan Jung’s question, I wrap elements in <note> by either pressing Ctrl+E (my own shortcut perhaps) or selecting text and pressing ENTER.
I must admit that I cannot remember where in Oxygen I configured this. I checked the options under Options > Preferences > Editor > Content Completion, but cannot find it.
What I want to achieve is that the <p> child gets inserted only when I add a new <note> element, but not when I wrap an element in <note>. Can this be done?
Best regards,
Frank
Von: oXygen-user <mailto:oxygen-user-bounces at oxygenxml.com> <oxygen-user-bounces at oxygenxml.com> Im Auftrag von Oxygen XML Editor Support (Radu Coravu)
Gesendet: Dienstag, 21. Januar 2025 05:47
An: oxygen-user at oxygenxml.com <mailto:oxygen-user at oxygenxml.com>
Betreff: Re: [oXygen-user] [OXYGEN-24088] Wrapping <p> into <note> produces invalid DITA code
Hi Frank,
By default with a stock Oxygen installation and default DITA XML editing, wrapping a <p> inside a <note> does not automatically add an extra paragraph like note > p > p. That's because when inserting a <note> by default no paragraph is inserted inside it.
Is it possible you made changes to the content completion configuration file so that a note has a required paragraph child element?
Regards,
Radu
Radu Coravu
Oxygen XML Editor
On 1/20/25 19:02, Frank Dissinger wrote:
Hi all,
When I insert a <note> element, <p> is added automatically as a child, which is the desired behaviour for me.
However, wrapping a <p> into <note>, produces the structure <note><p><p>, which is invalid because two <p> elements are nested.
How can I prevent that another <p> is added as a child of <note> just for the wrapping operation (and not for inserting)?
Freundliche Grüße | Best regards
Frank Dissinger
Documentation Manager
..........................................
CGS ORIS GmbH
Email <mailto:frank.dissinger at cgs-oris.com> frank.dissinger at cgs-oris.com | Web <http://www.cgs-oris.com/> www.cgs-oris.com
Address Kettelerstrasse 24 | 63512 Hainburg | Germany
Phone +49 6182 9626-0 | Fax +49 6182 9626-99
Commercial register Offenbach, HRB no. 21495
Managing directors Bernd Rückert, Christoph Thommessen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20250121/194f883a/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 63714 bytes
Desc: not available
URL: <http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20250121/194f883a/attachment-0001.png>
More information about the oXygen-user
mailing list