- Download the
com.oxygenxml.html.xslfo.embedplugin. - Add it to a Fluid Topics portal by following the Add a DITA-OT plugin document.
- Add a
<foreign outputclass="html-embed">element in a DITA topic. -
Insert HTML content in
<![CDATA[ ]]>tags inside of the<foreign outputclass="html-embed">element.For example:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"> <topic id="example_html_content"> <title>Example HTML content in DITA</title> <body> <foreign outputclass="html-embed"><![CDATA[ <iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/EyYj5l00JHw?si=lMcFRi1MHiQyfKr-" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe> ]]></foreign> </body> </topic>