Procedure - Fluid Topics - Latest

DITA Connector Reference Guide

Category
Reference Guides
Audience
public
Version
Latest
  1. Download the com.oxygenxml.html.xslfo.embed plugin.
  2. Add it to a Fluid Topics portal by following the Add a DITA-OT plugin document.
  3. Add a <foreign outputclass="html-embed"> element in a DITA topic.
  4. 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>
    
  5. Publish.