Can't comment out DITA that contains double dash --
Posted: Sat Dec 21, 2019 12:39 am
In the oXygen XML Editor Author mode, when I click the Toggle Comment button to comment out a part of my DITA document, I see the following error message:
Here's part of what I was trying to comment out:
And, indeed, there is a double dash -- in the href for the xref. The double dash comes from the base topic's ID:
My question: can I change the way that oXygen adds auto-generated IDs to not include a double dash in the ID? If the ID has no double dash, I can easily comment out any section of a DITA document. As it is, there are many parts of a document that I cannot comment out. I did not see any option or preference that controls auto-generated IDs.
From this forum, I saw that oXygen is supposed to convert the -- to an escaped-string (such as -\-) to allow commenting to work. However, I do not see this behavior. I have oXygen XML Editor 18.0.
-- Michael
Code: Select all
The character sequence '--' is not permitted within comments
Code: Select all
<xref href="#xd_179f5ba22902868a-28cc585f-140514b5b56--7eae/step_zfy_3kx_bkb" format="dita"/>
Code: Select all
<task xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/" id="xd_179f5ba22902868a-28cc585f-140514b5b56--7eae" xml:lang="en-US">
From this forum, I saw that oXygen is supposed to convert the -- to an escaped-string (such as -\-) to allow commenting to work. However, I do not see this behavior. I have oXygen XML Editor 18.0.
-- Michael