Import from DITA
Import DITA XML files, either individual topics or full DITA projects with their maps. DITA import is available on every plan, including the Free plan.
Before you begin
DITA content must be valid XML; resolve any parsing errors before importing
Standard
PUBLICandSYSTEMDOCTYPE declarations are accepted without loading their DTDs. Files must be self-contained: internal DTD subsets and entity declarations are refused.To import a DITA map, put the
.ditamapand every file it references in a single.ziparchive. A.ditamapselected on its own is refused.
Plan your migration
Before importing, assess your DITA content:
Import the whole project, not loose topics. A single
.ditafile becomes one topic. A full DITA project unlocks the high-fidelity path. That means a.ditamap(or two or more.ditatopics) plus its referenced files, zipped together. The project path reconstructs conrefs, conditions, and DITAVAL targets. Whenever possible, zip and import the project.Check for conrefs. In a project import, a conref to a whole topic becomes a Topicary component. Each conref usage becomes a component reference, so single-source reuse carries over. Conrefs to a single element inside a topic (
file.dita#topic/element) are not supported. A topic that uses one is not imported, and the import results name it.Check for key references. Keys defined in the
.ditamapresolve for image references (<image keyref>) and forconkeyref. Text key references, such as<keyword keyref>and<ph keyref>, are not resolved. The element keeps only its own text.Check for nested maps. A map that pulls in another map with
<mapref>is not assembled. Flatten nested maps into one.ditamapbefore importing.Identify specializations. Topics using specializations beyond concept, task, reference, and glossary are imported as generic topics. Review these for proper categorization.
Here is a typical DITA topic structure that Topicary imports:
<?xml version="1.0" encoding="UTF-8"?>
<concept id="backup_overview">
<title>Backup overview</title>
<shortdesc>How automatic backups protect your data.</shortdesc>
<conbody>
<p>The system creates daily backups of all project data.</p>
<ul>
<li>Database snapshots run at 02:00 UTC</li>
<li>File storage is replicated across two regions</li>
</ul>
<note type="important">Backups are retained for 90 days.</note>
</conbody>
</concept>In this example, the <concept> type maps to a Concept topic and the <note> becomes a callout block. All standard elements (<p>, <ul>, <li>) transfer directly.
Import individual DITA topics
Go to Topics and click Import.
Select
.ditaor.xmlfiles.Preview cards show each file's title and a format badge. The DITA topic type (concept, task, reference) is detected during import and set on the created topic.
Click Import.
Import a DITA project
Select a
.zipthat contains the.ditamapand all the topic, image, and DITAVAL files it references.Leave Create a map from imported structure selected. It is selected by default. Clear it only if you want the topics without a map; DITAVAL targets are then skipped too, because they need a map.
Click Import.
The DITA map's <topicref> hierarchy becomes nested map items in Topicary.
The ditamap-to-map conversion is one of the cleanest parts of a DITA migration. Your <topicref> nesting, topic ordering, and section grouping are preserved as Topicary map items, so you rarely need to reorganize after import.
What is preserved
Content elements transfer the same way for both single-file and project imports:
DITA element | Topicary equivalent |
|---|---|
| Topic (type: Concept) |
| Topic (type: Task) |
| Topic (type: Reference) |
| Topic (type: Glossary) |
| Map hierarchy |
| Paragraphs, lists, definition lists, tables |
| Code block |
| Callout block |
| Topic link or regular link |
Additional structures preserved in a project import
When you import a full DITA project (a .ditamap plus its files, or two or more .dita topics, zipped together), Topicary also reconstructs:
DITA structure | Topicary equivalent |
|---|---|
Conrefs to a whole topic | Components, with each conref usage kept as a component reference |
Profiling attributes ( | Condition dimensions and values |
DITAVAL files | Publication targets with the matching condition profile |
Image keys and | Resolved through the key definitions in the |
Relationship tables | A Related topics list of topic links at the end of each related topic |
Subject scheme maps | Stored in project settings |
Bookmap roles (chapter, frontmatter, backmatter) | Map item metadata |
Prolog metadata, nested/ditabase topics | Topic metadata; nested topics split into separate topics |
These reconstructions require the surrounding project. A lone .dita file imported on its own has no map, DITAVAL, or sibling topics to draw from. Its conrefs and key references are not resolved, so content they would pull in from other files is missing. Its profiling attributes are not turned into conditions. Zip and import the project to get the high-fidelity path.
What is not preserved
DITA specializations beyond concept, task, reference, and glossary: imported as generic topics
Conrefs to a single element (
file.dita#topic/element): not supported; the topic that uses one is not importedText key references (
<keyword keyref>,<ph keyref>): not resolved; only image keys andconkeyrefresolveNested maps (
<mapref>): the map is not assembledImages inside running text (an
<image>within a paragraph): the topic is not imported; move the image to its own block firstDITAVAL flag (highlighting) rules: only include/exclude rules become condition profiles
DITA features without a Topicary equivalent (for example, complex domain specializations): review after import
When a topic or map cannot be imported completely, Topicary does not import a partial copy. The import results list each skipped item with the reason.
Post-import checklist
Read the import results. Fix any topic or map listed as not imported, then import again.
Review imported topics for formatting accuracy, especially tables and nested lists.
For a project import, open a few topics that used conrefs and confirm the component references resolve. For a single-file import, find the content that conrefs would have pulled in and extract it into components.
Check the map hierarchy. DITA map
topicrefnesting maps to Topicary indentation.Review the condition dimensions and values created from your profiling attributes. Confirm any publication targets created from DITAVAL files match the audience split you expect.
If your project used relationship tables, check the Related topics list at the end of a few related topics.
Publish a test target and review the output.
See also
Import formats: full reference for supported formats, size limits, and what content is preserved for each format
Create and organize a map: adjust the map hierarchy created from your ditamap structure
How component reuse works: work with the components created from your DITA conrefs (or extract new ones)
Conditions versus variables: review and manage the conditions reconstructed from your DITA profiling attributes