Custom XML to Responsive Webhelp Index Page discarding HTML entities
Post here questions and problems related to editing and publishing DITA content.
Custom XML to Responsive Webhelp Index Page discarding HTML entities
Hello,
We are using custom XML fragment files when producing responsible webhelp with the oXygen webhelp plugin (19.1).
Unfortunately, it seems that the HTML entities either are discarded or prevent the parsing of the file.
By default, our localization software will convert any special characters to HTML entities to avoid malformed code in XML files.
Oxygen not parsing these entities is therefore an issue.
For instance:
Regards,
Rémi
We are using custom XML fragment files when producing responsible webhelp with the oXygen webhelp plugin (19.1).
Unfortunately, it seems that the HTML entities either are discarded or prevent the parsing of the file.
By default, our localization software will convert any special characters to HTML entities to avoid malformed code in XML files.
Oxygen not parsing these entities is therefore an issue.
For instance:
- > is discarded and the content is displayed without the ">" character
Code: Select all
「<b>ヘルプ > 最新情報</b>」より、いつでもご覧になれます。</p>
- – prevents the file to be rendered
Code: Select all
<p>© 2013–2017
Regards,
Rémi
Re: Custom XML to Responsive Webhelp Index Page discarding HTML entities
Hello,
The XML fragment files should be well-formed in order to be parsed by the WebHelp Plugin. The only entities allowed in an well-formed XML file are the predefined entities ("&", "'", """ , ">", "<") and the character entities ("&# decimal number ;" or "&#x Hexadecimal number ;").
The HTML entities you are referring to are named entities and they must be declared in the document prolog or in a DTD file in order for an XML parser to be able to recognize them.
For example if you want to use the "–" entity your XML fragment should look like this:
For more about XML Well-Formedness you may read this article from our User Guide: https://www.oxygenxml.com/doc/ug-editor ... formedness
Regards,
Alin
The XML fragment files should be well-formed in order to be parsed by the WebHelp Plugin. The only entities allowed in an well-formed XML file are the predefined entities ("&", "'", """ , ">", "<") and the character entities ("&# decimal number ;" or "&#x Hexadecimal number ;").
The HTML entities you are referring to are named entities and they must be declared in the document prolog or in a DTD file in order for an XML parser to be able to recognize them.
For example if you want to use the "–" entity your XML fragment should look like this:
Code: Select all
<!DOCTYPE fragment [
<!ENTITY ndash "-">
]>
<p>© 2013–2017</p>
Regards,
Alin
Alin Balasa
Software Developer
<oXygen/> XML Editor
http://www.oxygenxml.com
Software Developer
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ 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