Issue with the "insert.olink" action?
Posted: Fri Oct 04, 2019 1:17 am
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