Appendix A. About DITA support in XMLmind DITA Converter Previous topic Parent topic Child topic Next topic

§ DITA 1.3 support

As of version 3.0, XMLmind DITA Converter (ditac for short) fully supports svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM6c29kaXBvZGk9Imh0dHA6Ly9zb2RpcG9kaS5zb3VyY2Vmb3JnZS5uZXQvRFREL3NvZGlwb2RpLTAuZHRkIgogICB4bWxuczppbmtzY2FwZT0iaHR0cDovL3d3dy5pbmtzY2FwZS5vcmcvbmFtZXNwYWNlcy9pbmtzY2FwZSIKICAgd2lkdGg9IjE4My40OTIxIgogICBoZWlnaHQ9IjEwMS4zMjc0NiIKICAgdmlld0JveD0iMCAwIDE1MS4zODA5OCA4Ni44NTIxMSIKICAgdmVyc2lvbj0iMS4wIgogICBpZD0ic3ZnMiIKICAgc29kaXBvZGk6dmVyc2lvbj0iMC4zMiIKICAgaW5rc2NhcGU6dmVyc2lvbj0iMC40OC41IHIxMDA0MCIKICAgc29kaXBvZGk6ZG9jbmFtZT0iZGl0YV9iaXJkLnN2ZyIKICAgaW5rc2NhcGU6b3V0cHV0X2V4dGVuc2lvbj0ib3JnLmlua3NjYXBlLm91dHB1dC5zdmcuaW5rc2NhcGUiPgogIDxtZXRhZGF0YQogICAgIGlkPSJtZXRhZGF0YTQxIj4K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jAyIC05LjY0LC0xLjggLTEzLjc5LC00LjQgLTAuNjgsLTEuNjEgMC4zNCwtMi45NiAxLjYsLTMuODUgMC4xLC0xLjM1IDAuMjEsLTIuNyAwLjM3LC00LjA1IDQuOTUsMC4zOSA5Ljg1LDEuMiAxNC43MSwyLjIxIDAuNzEsLTMuNzEgMS4zNCwtNy40NCAyLjM3LC0xMS4wNyB6IgogICAgICAgc3R5bGU9ImZpbGw6IzBhNTFhMCIKICAgICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiIC8+CiAgICA8cGF0aAogICAgICAgaWQ9InBhdGgyNiIKICAgICAgIGQ9Im0gMTgwLjM0OTcxLDY0LjgwODUxNSBjIDMuMTYsMC4zIDYuMTksLTAuODIgOC41NiwtMi44OSAtMC4yOSwxLjA5IC0wLjU2LDIuMTkgLTAuODEsMy4yOSAtNS4zNywyLjAxIC0xMC45OCwzLjQ0IC0xNi4wMyw2LjIxIDIuNjksLTIuMjkgNS40NiwtNC40OCA4LjI4LC02LjYxIHoiCiAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmIgogICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz4KICA8L2c+Cjwvc3ZnPgo= DITA 1.3 Opens in new window and as such, allows to convert DITA documents conforming to the DITA 1.3 DTD, W3C XML Schema or RELAX NG schema. However, there are still limitations, deemed minor, and implementation specificities which are documented in Appendix C.
In fact, when ditac v2.6+ is used, DITA 1.2 documents are automatically “upgraded” to DITA 1.3. This is caused by the fact that the following <!DOCTYPE> means "use latest version of the DITA DTD":
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="MyTopic">
...
</topic>
This should not be a problem as DITA 1.3 is a superset of DITA 1.2.

§ Technical content only

Ditac only supports "Technical content elements Opens in new window". However Classification elements Opens in new window (e.g. subject scheme maps Opens in new window) are still not supported.

§ DITA 1.3 RELAX NG schema

Ditac has no problem processing a DITA document pointing to a RELAX NG schema, rather than to a DTD or W3C XML Schema:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="urn:oasis:names:tc:dita:rng:topic.rng"?>
<topic id="MyTopic">
...
</topic>
The <?xml-model?> processing-instruction used in the above example is the standard way to associate a document to a RELAX NG schema. See "Associating Schemas with XML documents 1.0" Opens in new window.

§ The DTDToSchema facility

The DTDToSchema facility can be used to “upgrade” your documents conforming to a DITA 1.3 DTD to the equivalent DITA 1.3 W3C XML Schema or RELAX NG schema. Command-line example showing how to invoke the DTDToSchema facility:
$ java -cp ditac_install_dir/lib/ditac.jar com.xmlmind.ditac.tool.DTDToSchema¬
-rng MyTopic.dita
Before invoking the DTDToSchema facility, MyTopic.dita contained:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="MyTopic">
...
</topic>
After invoking the DTDToSchema facility, MyTopic.dita contains:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="urn:oasis:names:tc:dita:rng:topic.rng"?>
<topic id="MyTopic">
...
</topic>
The DTDToSchema facility is auto-documented:
$ java -cp ditac_install_dir/lib/ditac.jar com.xmlmind.ditac.tool.DTDToSchema

Usage: java -cp ditac.jar com.xmlmind.ditac.tool.DTDToSchema
  -rng|-xsd [ in_dita_file|in_dir_containing_dita_files ]+

"Upgrades" specified DITA documents conforming to a standard
DITA 1.3 DTD to the corresponding W3C XML schema or
RELAX NG schema.

Processes files or directories. Files are modified in place.
Directories are recursively processed. All the '.ditamap', '.dita'
and '.ditaval' files found in specified directories are processed.

Options:
-rng Upgrade to RELAX NG schema.
-xsd Upgrade to W3C XML schema.