Issue with the "insert.olink" action?
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 33
- Joined: Wed Dec 20, 2017 9:56 pm
Issue with the "insert.olink" action?
Hi,
With a DocBook 5 framework opened in Oxygen Author 21.0, it seems that if the action "insert.olink" is performed (which executes the operation ro.sync.ecss.extensions.docbook.olink.InsertOLinkOperation), it would display an error message in case the <xreftext> of the target includes characters such as & or <. For example:
<xreftext>a & b</xreftext>
or
<xreftext>a < b</xreftext>
The error messages for the above are, respectively,
"Could not insert document fragment. Cause: The entity name must immediately follow the '%26' in the entity reference."
and
"Could not insert document fragment. Cause: The content of elements must consist of well-formed character data or markup."
(By the way, if the <xreftext> contains > the "insert.olink" action works fine.)
Is this caused by a bug with the implementation of ro.sync.ecss.extensions.docbook.olink.InsertOLinkOperation ?
Thanks,
Charles
With a DocBook 5 framework opened in Oxygen Author 21.0, it seems that if the action "insert.olink" is performed (which executes the operation ro.sync.ecss.extensions.docbook.olink.InsertOLinkOperation), it would display an error message in case the <xreftext> of the target includes characters such as & or <. For example:
<xreftext>a & b</xreftext>
or
<xreftext>a < b</xreftext>
The error messages for the above are, respectively,
"Could not insert document fragment. Cause: The entity name must immediately follow the '%26' in the entity reference."
and
"Could not insert document fragment. Cause: The content of elements must consist of well-formed character data or markup."
(By the way, if the <xreftext> contains > the "insert.olink" action works fine.)
Is this caused by a bug with the implementation of ro.sync.ecss.extensions.docbook.olink.InsertOLinkOperation ?
Thanks,
Charles
-
- Posts: 9451
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Issue with the "insert.olink" action?
Hi Charles,
Thanks for the report, I added an internal issue for it. I looked a little bit in our code and indeed this looks like a bug on our side.
By the way, as a side note it is not necessary to escape the ">" character in XML, only the "<" is illegal to be inserted directly in XML text.
Regards,
Radu
Thanks for the report, I added an internal issue for it. I looked a little bit in our code and indeed this looks like a bug on our side.
By the way, as a side note it is not necessary to escape the ">" character in XML, only the "<" is illegal to be inserted directly in XML text.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 33
- Joined: Wed Dec 20, 2017 9:56 pm
Re: Issue with the "insert.olink" action?
Hi Radu,
Thanks for looking into this.
If I understand correctly, the fix be released with a future version of Oxygen. Before that happens, is there a workaround you would recommend, by any chance?
I think one workaround is to check off the "Insert xreftext in the Olink" box while in the "OLink" dialog, and then manually type in (or copy-paste) the link text in the XML. But if you know a better workaround, I'll be interested to learn about it.
Thanks!
Charles
Thanks for looking into this.
If I understand correctly, the fix be released with a future version of Oxygen. Before that happens, is there a workaround you would recommend, by any chance?
I think one workaround is to check off the "Insert xreftext in the Olink" box while in the "OLink" dialog, and then manually type in (or copy-paste) the link text in the XML. But if you know a better workaround, I'll be interested to learn about it.
Thanks!
Charles
-
- Posts: 9451
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Issue with the "insert.olink" action?
Hi Charles,
Other than what you mentioned I do not have another workaround.
The issue I added for this has internal ID EXM-44297, we'll fix the problem in Oxygen 22 (January 2020) but if this is important for you I can also try to add a fix for the next Oxygen 21.1 minor bug fix release (hopefully we can make another bug fix release in one month or so depending on how many issues we fixed on it).
Regards,
Radu
Other than what you mentioned I do not have another workaround.
The issue I added for this has internal ID EXM-44297, we'll fix the problem in Oxygen 22 (January 2020) but if this is important for you I can also try to add a fix for the next Oxygen 21.1 minor bug fix release (hopefully we can make another bug fix release in one month or so depending on how many issues we fixed on it).
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service