Under maintenance

Heretto Help

Required-Cleanup Element (required-cleanup)

The required-cleanup element is a temporary placeholder used during content migration to hold material that cannot be properly converted to DITA without manual intervention. As the name suggests, this element marks draft content that requires cleanup by an author before it can be published.

The required-cleanup element serves these primary purposes:

  • Acts as a temporary holding area for content during migration from non-DITA formats to DITA

  • Preserves content that would otherwise be invalid or lost during automated conversion processes

  • Signals to authors that the contained material needs manual review and proper DITA tagging before being published

Key characteristics of the required-cleanup element:

  • Is primarily created by automated conversion tools, though may be used during manual migration when content needs review

  • Holds legacy content that will not appear in your final published documentation until after cleanup

  • Can contain any well-formed markup, even if it's not valid DITA

  • Has a default translate attribute value of "no" to prevent translation of unverified content

  • Should be removed once the content has been properly tagged with appropriate DITA elements

Content within the required-cleanup element follows these output rules:

  • The content in this element is not considered verified or publishable data, so processors must strip it from output by default

  • Some processors may offer draft viewing options to show migrated content in context during review

Use required-cleanup when:

  • Converting legacy content from HTML, Word, or other formats to DITA using automated tools

  • An element from the source format has no clear equivalent in DITA

  • Content structure is too complex for automated conversion to determine the correct DITA markup

  • Preserving the original content is necessary for authors to make informed tagging decisions

Important:

The required-cleanup element is strictly a migration tool. You should not add this element to your DITA documents simply to make content "draft" (i.e., not published). There are more semantically appropriate ways of doing that, such as using an "internal only" audience tag or adding draft-comment elements.

Tip:

When you encounter required-cleanup elements in migrated content, the remap attribute tells you what the original element was (for example, remap="center" indicates content from an HTML <center> tag). This gives you helpful context for deciding how to properly tag the content in DITA.

The DITA source of required-cleanup element created during HTML-to-DITA conversion:

<section>
    <title>Product Overview</title>
    <p>Our flagship product offers the following features:</p>
    <required-cleanup remap="center">
        Some original content migrated from a &lt;center> tag.
    </required-cleanup>
    <p>For more details, see the feature specifications.</p>
</section>

After cleanup, the author might convert this to proper DITA markup like this:

<section>
    <title>Product Overview</title>
    <p>Our flagship product offers the following features:</p>
    <p>Some original content migrated from a center tag.</p>
    <p>For more details, see the feature specifications.</p>
</section>

In this example, the author determined that the centered text should simply be a paragraph, so the required-cleanup element was removed and replaced with a standard <p> element.