Kristen James Eberlein (kris@eberleinconsulting.com), Eberlein Consulting LLC
This document is part of a work product that also includes:
Lightweight DITA (LwDITA) is a simplified version of DITA. In comparison to DITA 1.3, LwDITA has a smaller element type and attribute set, stricter content models, and a reduced feature set. LwDITA also defines mappings between XML, HTML5, and Markdown, enabling authoring, collaboration, and publishing across different markup languages.
This document was last revised or approved by the OASIS Darwin Information Typing Architecture (DITA) TC on the above date. The level of approval is also listed above. Check the “Latest version” location noted above for possible later revisions of this document.
TC members should send comments on this document to the TC’s email list. Others should send comments to the TC’s public comment list, after subscribing to it by following the instructions at the “Send A Comment” button on the TC’s web page at https://www.oasis-open.org/committees/comments/index.php?wg_abbrev=dita.
When referencing this note, the following citation format should be used:
Copyright © OASIS Open 2018. All Rights Reserved.
All capitalized terms in the following text have the meanings assigned to them in the OASIS Intellectual Property Rights Policy (the "OASIS IPR Policy"). The full Policy may be found at the OASIS website.
This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist in its implementation may be prepared, copied, published, and distributed, in whole or in part, without restriction of any kind, provided that the above copyright notice and this section are included on all such copies and derivative works. However, this document itself may not be modified in any way, including by removing the copyright notice or references to OASIS, except as needed for the purpose of developing any document or deliverable produced by an OASIS Technical Committee (in which case the rules applicable to copyrights, as set forth in the OASIS IPR Policy, must be followed) or as required to translate it into languages other than English.
The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors or assigns.
This document and the information contained herein is provided on an "AS IS" basis and OASIS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY OWNERSHIP RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
3.2 Support for non-XML formats
3.3 Development of LwDITA tools and applications
4.1 Components of the LwDITA topic
4.2 Components of the LwDITA map
4.4 Subset of reuse mechanisms
5.1.2 Example of an XDITA topic
5.2.2 Example of an HDITA topic
5.3.2 Examples of MDITA topics
5.4 Authoring cross-format content with LwDITA
5.4.1 Cross-format example: XDITA map
5.4.2 Cross-format example: XDITA topic
5.4.3 Cross-format example: HDITA topic
5.4.4 Cross-format example: MDITA topic
Appendix A.1 DITA 1.3 element types in LwDITA
Appendix A.2 New element types
Lightweight DITA (LwDITA) is a simplified version of the Darwin Information Typing Architecture (DITA). In comparison to DITA 1.3, LwDITA has a smaller element type and attribute set, stricter content models, and a reduced feature set. LwDITA also defines mappings between XML, HTML5, and Markdown, enabling authoring, collaboration, and publishing across different markup languages.
This committee note covers the following points:
Lightweight DITA is a work in progress. This committee note outlines the current plans in order to gain design clarity and receive feedback from potential users and implementers. Please note that details might change between the publication of this committee note and the actual release of the Lightweight DITA standard.
The following are references to external documents or resources that readers of this document might find useful.
This section provides information about terminology and how it is used in this committee note.
@data-conref
, that are used in HDITA and the
extended profile of MDITA to use DITA features such as conref and keyref.@id
attribute on the root element, prolog
metadata, and optional use of HTML element types.Lightweight DITA is a standards-based alternative for situations in which DITA 1.3 would be too complex or for communities that do not use XML as an authoring platform.
DITA 1.3 is a mature architecture with a deep set of advanced features. This maturity can be intimidating for those considering adoption, especially for simple scenarios. While simplified versions of DITA exist, most are vendor-developed and proprietary. A standards-based lightweight alternative will enable the DITA community to offer a common starting point for simple DITA scenarios that remains fully compatible with DITA 1.3.
Some authoring communities have strong ties to specific formats, such as Markdown or HTML. While these formats do not have the same expressiveness as XML, they bring with them a set of tools and practices that can be a natural fit with a DITA ecosystem. Lightweight DITA defines a lower-function level of interchange and mappings for HTML5 and Markdown, thus becoming the first version of DITA to be truly cross-format —allowing authoring and delivery in a mix of native formats that are all mapped to a common semantic standard.
The Lightweight DITA subcommittee began work by identifying key authoring communities that were interested in the benefits that LwDITA could provide; it then identified scenarios including cross-format authoring and reuse. LwDITA represents common ground for the functionality that is needed by the following authoring communities: learning and training, software documentation authored by subject matter experts (SMEs), and marketing content.
LwDITA is a proposed standard for expressing simplified DITA documents in XML, HTML5, and Markdown.
The core goals of LwDITA are the following:
LwDITA is not a replacement for DITA 1.3. Organizations and teams that are already using DITA are encouraged to explore LwDITA, but they are not the primary audience for this proposed lightweight standard. Organizations and individuals that have not adopted DITA, either because XML is not a tool used in their professional communities or they are not familiar with information typing, can rely on LwDITA as their introduction to structured authoring and content reuse.
LwDITA is intended to be a conforming subset of DITA 1.3. In order to make this possible, the DITA Technical Committee will release a new multimedia domain for use with DITA 1.3.
DITA 1.3 has more power (and thus complexity) than is needed in some authoring situations. LwDITA provides a simpler alternative.
While LwDITA supports core features in the DITA standard – semantic tagging, topic orientation, content reuse, conditional processing, and specialization – LwDITA deliberately limits itself to generic structures that are highly applicable across many industries. This results in a much smaller standard in terms of element types, attributes, features, and complexity.
Conference presentations and practitioners' blogs occasionally describe DITA as an intimidating grammar with too many document and element types. In the base edition, DITA 1.3 has three document types and 189 element types. In contrast, LwDITA has two document types and 48 element types. 39 of the element types are defined in DITA 1.3, and the other 9 are multimedia element types that are part of a forthcoming domain intended for use with DITA 1.3.
This pragmatic design has benefits for both small and large projects, as well as new and existing DITA implementations. Compared to DITA 1.3, the learning curve for LwDITA will be shorter, and implementing LwDITA might involve less change management and, as a result, lower costs.
LwDITA adds support for structured authoring in HTML5 and Markdown.
New forms of non-XML structured authoring have gained popularity. Authors use the extended semantic markup of HTML5 to create structured documents for the Web. Many in industry and academia have adopted plain text languages like Markdown.
In its initial release, LwDITA has three authoring formats:
These authoring formats will enable and enhance collaboration across divisional silos. Engineers can author in Markdown, marketing writers can author in HTML5, and technical writers and others familiar with DITA can author in XML. Documents authored in the various authoring formats can be aggregated and published as a single document collection. They also can easily integrate into DITA 1.3 collections.
These three authoring formats do not represent a final version of LwDITA. In the future, based on community interest and development resources, LwDITA might add mappings, for example, between DITA and JSON, AsciiDoc, or MS Word.
The XDITA and HDITA content models are designed to be functionally equivalent to each other, while MDITA is a compatible subset. XDITA and HDITA conform with the OASIS DITA and W3C HTML5 standards, respectively. In its core profile, MDITA aligns with the GitHub Flavored Markdown specification. In its extended profile, MDITA can incorporate YAML front matter headers and HDITA element types and attributes to overcome Markdown limitations as a language for authoring structured and reusable content.
The DITA Technical Committee hopes that LwDITA will make it easier for companies to develop inexpensive tools for authoring, aggregating, and publishing LwDITA content.
DITA 1.3, with its many elements and advanced features, makes it difficult for companies to implement new authoring and publishing systems. In contrast, the simplified and predictable structure of LwDITA ought to remove many of the barriers that stand in the way of the development of new tools, both commercial and open-source.
LwDITA is designed to have a smaller element set, a stricter content model, and fewer reuse mechanisms than DITA 1.3. However, LwDITA also includes new components that provide increased multimedia support.
LwDITA uses a subset of the topic element types that are available in DITA 1.3.
The subset was carefully chosen to include only the most basic constructions that are needed to structure information effectively. The Lightweight DITA subcommittee considered the needs of diverse industries and sectors (including education, engineering, healthcare, and marketing) when selecting topic elements for LwDITA.
The selected subset contains the following document components:
For a complete list of the DITA 1.3 element types that are included in LwDITA and their availability in the authoring formats, see DITA 1.3 element types in LwDITA.
LwDITA uses a subset of the map element types that are available in DITA 1.3.
The selected subset contains the following map components:
For a complete list of the DITA 1.3 element types that are included in LwDITA and their availability in the authoring formats, see DITA 1.3 element types in LwDITA.
LwDITA has a much stricter content model than DITA 1.3. This ensures a predictable markup structure in topics that simplifies reuse, transformations, style sheet logic, and tools development.
This strict content model minimizes authoring decisions by presenting limited choices for elements and attributes. This model, however, depends on a few strict rules. For example, in XDITA and HDITA, with a few exceptions, all text must be within paragraph elements. Exceptions are the description, short description, and title elements. Within paragraphs, the following can appear:
In DITA 1.3, the following markup is valid:
<section>Compatible light bulbs include the following:
<ul>
<li>Compact Fluorescent</li>
<li>Light Emitting Diode</li>
</ul>
</section>
In contrast, in XDITA the following markup must be used:
<section>
<p>Compatible light bulbs include the following:</p>
<ul>
<li>
<p>Compact Fluorescent</p>
</li>
<li>
<p>Light Emitting Diode</p>
</li>
</ul>
</section>
Note that all text is wrapped in <p>
elements. This restriction of mixed
content in block elements simplifies tool development for processing LwDITA content, and it also
enables easier content reuse, as authors can conref paragraphs from most of
the block contexts that are available in LwDITA.
LwDITA offers a subset of the reuse mechanisms that are available in DITA 1.3.
@props
(in XDITA) or @data-props
(in HDITA and MDITA extended profile).The @conref
(in XDITA) or @data-conref
(in HDITA and MDITA extended profile) attribute is
available on the following document components:
The content reference mechanism is not available in the MDITA core profile.
@keyref
(in XDITA) or @data-keyref
(in HDITA) or [keyref]
(in MDITA extended profile) attribute can be used on
phrase (XDITA) or span (HDITA). It is also available on links, alternative text, and
data.
@keyref
on phrase
(XDITA) or span (HDITA).This design simplifies the DITA authoring experience, as there are no choices to be made. To
reuse block-level content, authors will use @conref
. For phrase-level content, authors will use
@keyref
.
For a complete list of the DITA 1.3 attributes that are included in LwDITA, see DITA 1.3 attributes in LwDITA.
LwDITA adds new element types for multimedia content. These element types are compatible with HTML5; they are part of a forthcoming domain intended for use with DITA 1.3.
For years, authors have used different approaches to embed multimedia content in DITA-based
deliverables for the Web. The DITA 1.3 specification recommends the
<object>
element type to include multimedia content in a topic, pointing
out that it corresponds to the <object>
element type in HTML. However, HTML5 introduced
direct element types for audio and video. LwDITA updates the
XML-to-HTML element type correspondence and introduces the
following multimedia components, which are
specialized from the DITA 1.3 <object>
and
<param>
element types:
These multimedia components are not available in the MDITA core profile; they must be expressed in raw HDITA syntax as part of the MDITA extended profile.
The DITA Technical Committee is working on a multimedia domain add-on for DITA 1.3 that would include some of these element types to maintain compatibility between DITA and LwDITA.
LwDITA follows the same specialization architecture as DITA 1.3, although there are some limitations and special rules.
Because LwDITA is a proposed standard that spans multiple authoring formats, coordination of the same specialization rules across markup languages poses some unique challenges. Not all LwDITA formats will support specialization to the same degree.
<training-video>
element type that is specialized from the DITA 1.3 element type
<object>
. They must specialize it from the XDITA element type
<video>
.A general recommendation for LwDITA specializations is to keep in mind the lightweight nature of the proposed standard and avoid complicated content structures. Authors who need robust specialization for complex scenarios should use DITA 1.3.
LwDITA offers three authoring formats: XDITA, HDITA, and MDITA.
XDITA is the authoring format of LwDITA that uses XML to structure information. XDITA is a subset of DITA, with new multimedia element types added to support interoperability with HTML5.
XDITA is designed for users who want to write DITA content but who do not want (or need) the full power of DITA.
Potential users of XDITA include the following:
The following topic is authored in XDITA. In addition to basic DITA element types, note
the new <video>
element type that is highlighted in bold.
<topic id="install-and-setup">
<title>Installing and Setting up Remote Lighting</title>
<shortdesc>Installation of your lighting kit includes installing the light bulbs into light fixtures, preparing the remote control, and programming lighting groups.
</shortdesc>
<prolog>
<data name="author" value="Kevin Lewis"/>
</prolog>
<body>
<section>
<title>Steps</title>
<ul>
<li><p>Install light bulbs.</p></li>
<li><p>Prepare remote control.</p></li>
<li><p>Program lighting groups.</p></li>
</ul>
</section>
<section>
<title>Example</title>
<p>The following video demonstrates a recommended installation:</p>
<video>
<media-controls />
<video-poster value="remote-poster.jpg" />
<media-source value="remote.mp4" />
</video>
</section>
</body>
</topic>
XDITA topics are fully compatible with DITA topics. An author can work on an XDITA topic and keep it in a collection of LwDITA topics, but that same topic will also be compatible with maps and topics authored in DITA 1.3.
The following map is authored in XDITA.
<map id="remote-main">
<topicmeta>
<navtitle>Remote Lighting Network</navtitle>
</topicmeta>
<keydef keys="product-name">
<topicmeta>
<linktext>Remote Network Lighting</linktext>
</topicmeta>
</keydef>
<topicref href="introduction.dita">
<topicmeta>
<navtitle>Introduction</navtitle>
</topicmeta>
</topicref>
<topicref href="alternatives.dita">
<topicmeta>
<navtitle>Alternative lighting setups</navtitle>
</topicmeta>
<topicref href="low-power.dita">
<topicmeta>
<navtitle>Low power installation</navtitle>
</topicmeta>
</topicref>
<topicref href="high-power.dita">
<topicmeta>
<navtitle>High power installation</navtitle>
</topicmeta>
</topicref>
</topicref>
</map>
Note that XDITA requires a <navtitle>
inside a
<topicmeta>
to declare a map's title. This decision eliminates the need
for <title>
as a single-purpose element in maps, and also keeps the
<topicmeta>
options parallel for maps and topics.
HDITA is the authoring format of LwDITA that uses HTML5 to structure information. It also uses custom data attributes to provide interoperability with DITA.
HDITA is designed for users who want to use HTML-authoring tools to write structured content.
Potential users of HDITA include the following:
The following topic is authored in HDITA. The topic uses HTML5 element types and custom data attributes for content reuse and compatibility with DITA. The custom data attribute highlighted in bold includes a content reference from a DITA topic with a disclaimer expected from all topics in this fictional scenario.
<!DOCTYPE html>
<html>
<head>
<title>Installing and Setting up Remote Lighting</title>
</head>
<body>
<article id="install-and-setup">
<h1>Installing and Setting up Remote Lighting</h1>
<p>Installation of your lighting kit includes installing the light bulbs into light fixtures, preparing the remote control, and programming lighting groups.</p>
<h2>Steps</h2>
<ul>
<li>
<p>Install light bulbs.</p>
</li>
<li>
<p>Prepare remote control.</p>
</li>
<li>
<p>Program lighting groups.</p>
</li>
</ul>
<h2>Example</h2>
<p>The following video demonstrates a recommended installation:</p>
<video src="remote.mp4" controls poster="remote.png"></video>
<p data-conref="bulbs-to-groups.dita#bulbs-to-groups/assign-disclaimer"></p>
</article>
</body>
</html>
An HDITA map is authored in HTML5.
<nav>
<h1>Remote Lighting Network</h1>
<div class="keydef">
<span class="linktext" data-keys="product-name">Remote Lighting Network</span>
</div>
<ul>
<li><p><a href="introduction.html">Introduction</a><p></li>
<li><p><a href="alternatives.html">Alternative lighting setups</a></p>
<ul>
<li><p><a href="low-power.html">Low power installation</a></p></li>
<li><p><a href="high-power.html">High power installation</a></p></li>
</ul>
</li>
</ul>
</nav>
MDITA is the authoring format of LwDITA that uses Markdown to structure information.
LwDITA includes two profiles for authoring MDITA topics:
MDITA is designed for users who want to write structured content with the minimum of overhead, but who also want to take advantage of the reuse mechanisms associated with the DITA standard and the multi-channel publishing afforded by standard DITA tooling.
Potential users of the MDITA core profile include the following:
An MDITA topic is authored in Markdown. MDITA topics can be created using either core or extended profiles.
The MDITA core profile contains simple information structures that are readily available in Markdown:
The MDITA core profile aligns with the GitHub Flavored Markdown Spec. The following example shows an MDITA core-profile topic:
# Installing and Setting up Remote Lighting
Installation of your lighting kit includes installing the light bulbs into light fixtures, preparing the remote control, and programming lighting groups.
## Steps
1. Install light bulbs.
2. Prepare remote control.
3. Program lighting groups.
## Example
![Image](remote.png)
In an MDITA topic, the required topic @id
attribute is generated with a slug
version of the topic title, following a process similar to the WordPress URL creation for
posts.
The MDITA extended profile allows the following components to enhance interoperability with other LwDITA authoring formats and DITA 1.3:
@id
attribute that is required on the root element of a DITA topic; it
can also include prolog metadata about who authored the DITA topic. If included in a
topic, the YAML front matter header must be the first thing in the MDITA file and must be
set between triple-dashed lines.The following example shows an MDITA extended-profile topic with a YAML header indicating
its @id
and author, and an HDITA element type
that enables the topic to reference a video (indicated in bold text).
---
id: install-and-setup
author: Kevin Lewis
---
# Installing and Setting up Remote Lighting
Installation of your lighting kit includes installing the light bulbs into light fixtures, preparing the remote control, and programming lighting groups.
Before you attempt to install your lighting kit, please turn off the power in your electrical circuit panel,
## Steps
1. Install light bulbs.
2. Prepare remote control.
3. Program lighting groups.
## Example
The following video demonstrates a recommended installation:
<video src="remote.mp4" controls poster="remote.png"></video>
MDITA topics are designed as a compatible subset of XDITA and HDITA topics.
An MDITA map is authored in Markdown. The following example uses MDITA core-profile code to produce a map with a title, and an unordered list (itself containing a nested, unordered list) of titles for topics and their associated file names.
# Remote Lighting Network
- [Introduction](introduction.md)
- [Alternative lighting setups](alternatives.md)
- [Low power installation](low-power.md)
- [High power installation](high-power.md)
LwDITA enables cross-format content sharing. Authors can create topics in XDITA, HDITA, extended-profile MDITA, or DITA 1.3 and then publish them as a unified collection that uses content referencing and key referencing.
In the following example, a team that develops content for a lighting product shares topics
authored in the LwDITA authoring formats. The team even takes advantage of the @conref
and @keyref
mechanisms. The example contains the following:
Each of the LwDITA topics use a key reference to refer to the product name.
The following XDITA map links to topics authored in the three formats of LwDITA and DITA 1.3. It also provides a key for the product name.
<map>
<topicmeta>
<navtitle>Remote Lighting Setup</navtitle>
</topicmeta>
<keydef keys="product-name">
<topicmeta>
<linktext>Remote Network Lighting</linktext>
</topicmeta>
</keydef>
<topicref href="xdita-topics/bulbs-to-groups.dita" format="dita"/>
<topicref href="hdita-topics/low-power.html" format="hdita"/>
<topicref href="mdita-topics/basic-concepts.md" format="mdita"/>
<topicref href="external/dita-topics/contact-info.dita" format="dita"/>
</map>
The following XDITA topic contains a key reference to a product name and a content reference to a paragraph from an MDITA topic.
<topic id="bulbs-to-groups">
<title>Programming Light Bulbs to a Lighting Group</title>
<shortdesc>You can program one or more light bulbs to a lighting group to operate that group with your remote control.</shortdesc>
<body>
<section id="context">
<p>Your <ph keyref="product-name"/> remote control can manage up to 250 network light bulbs on the same lighting network. When you add a light bulb to the network, you can program it to one or more lighting groups.</p>
<p id="assign-disclaimer">You must assign a light bulb to at least one lighting group to operate that light bulb.</p>
</section>
<section id="steps">
<ol>
<li><p conref="basic-concepts.md#basic-concepts/power-off" /></li>
<li><p>Remove any existing light bulb from the light fixture.</p></li>
<li><p>Install the network light bulb into the light fixture as you would any standard light bulb.</p></li>
<li><p>Turn power to the light fixture on.</p></li>
</ol>
</section>
</body>
</topic>
The following HDITA topic contains a key reference to a product name and a content reference to a paragraph from an XDITA topic.
<!DOCTYPE html>
<html>
<title>Low-Power Networking</title>
<article id="low-power">
<h1>Low-Power Networking</h1>
<p>Your <span data-keyref="product-name"></span> operates at a low level of networking power but can successfully connect at long distances because they can send information from light bulb to light bulb.</p>
<p data-conref="bulbs-to-groups.dita#bulbs-to-groups/assign-disclaimer"></p>
<p id="disconnect-warning" class="note">Even in low power networks, be sure to disconnect all devices before performing maintenance tasks.</p>
</article>
</html>
The following MDITA extended-profile topic contains a key reference to a product name and a content reference to a paragraph from an HDITA topic.
---
id: basic-concepts
---
You can network LED light bulbs together to operate wirelessly from a remote control using the RemotaLux app.
# Basic Concepts of Network Lighting
Network light bulbs from your [product-name] work with your light fixtures the same way as standard light bulbs. They are different, however, in a couple of ways:
- The lighting element in the light bulb uses energy-efficient LED technology.
- The light bulb includes wireless technology that allows the light bulb to connect to a network and be managed remotely using the RemotaLux app.
<p id="power-off">Make sure power to the fixture where you are installing the light bulb is turned OFF.</p>
<p data-conref="low-power.html#low-power/disconnect-warning"></p>
Although many of the LwDITA elements and workflows proposed in this document are still experimental, tools already exist to support organizations who want to explore using LwDITA.
The DITA Technical Committee expects that the release of Lightweight DITA as an OASIS standard will lead to a rapid increase in the number of commercial and open-source tools that provide support for LwDITA.
The Lightweight DITA subcommittee maintains a wiki page with a list of LwDITA tools and resources. The page can be accessed at https://wiki.oasis-open.org/dita/LightweightDITASubcommittee/lwditatools
Tool developers interested in having resources listed on the wiki page should email the Lightweight DITA subcommittee at dita-lightweight-dita-chair@lists.oasis-open.org
This section lists the element types and attributes that are available in LwDITA.
This topic lists the DITA 1.3 element types that are available in LwDITA. It also lists how to represent them in XDITA, HDITA, and MDITA.
Component | XDITA | HDITA | MDITA |
---|---|---|---|
Alternate text | <alt> |
Attribute on <img> |
[text] |
Body | <body> |
<body> |
No explicit markup |
Bold | <b> |
<strong> |
** or __ |
Cross reference | <xref> |
<a href> |
[link](/URI "title") |
Data | <data> |
<meta> |
(MDITA extended profile) Any variables declared in a YAML front matter header. The front matter must be the first block in the file and must be set between triple-dashed lines. |
Definition description | <dd> |
<dd> |
(MDITA extended profile) <dd> in HDITA syntax |
Definition list entry | <dlentry> |
Possible with a combination of data attributes1 | (MDITA extended profile) Possible with a combination of data attributes |
Definition term | <dt> |
<dt> |
(MDITA extended profile) <dt> in HDITA syntax |
Definition list | <dl> |
<dl> |
(MDITA extended profile) <dl> in HDITA syntax |
Description | <desc> |
<caption> in <table> ;
<figcaption> in <figure> ; not applicable in
links |
Not applicable |
Figure | <fig> |
<figure> |
Not applicable |
Footnote | <fn> |
<span class="fn"> |
(MDITA extended profile) <span
class="fn"> |
Image | <image> 2 |
<img> |
![alt text for an image](images/image_name.jpg) |
Italics | <i> |
<em> |
* or _ |
Key definition | <keydef> |
<div data-class="keydef"> |
MDITA (extended profile)
<div data-class="keydef"> in HDITA syntax |
Link text | <linktext> |
<span data-class="linktext"> |
MDITA (extended profile)
<span data-class="linktext"> |
List item | <li> |
<li> |
' -, +, or * for ul, and 0-9 and . or ) for ol |
Map | <map> |
<nav> |
See Example of an MDITA map |
Note | <note> |
<div data-class="note"> |
(MDITA extended profile) <div data-class="note"> in HDITA syntax |
Ordered list | <ol> |
<ol> |
See list item |
Paragraph | <p> |
<p> |
Two carriage returns |
Navigation title | <navtitle> |
Not applicable | Not applicable |
Phrase | <ph> |
<span> |
(MDITA extended profile) <span> in HDITA syntax |
Preformatted text | <pre> |
<pre> |
Fenced code blocks (e.g. ```text```) or indented code blocks (e.g. text) |
Prolog | <prolog> |
<meta> inside <head> |
Provided in YAML header |
Section | <section> |
<section> |
## or ----- underline |
Short description | <shortdesc> |
Implied in first paragraph | Implied in first paragraph |
Table | <simpletable> |
<table> |
Tables in MDITA follow the GitHub Flavored Markdown syntax. See section 4.10 of the GFM spec |
Simple table entry | <stentry> |
<th> for headers and <td> for normal
entries |
See Table |
Simple table header | <sthead> |
<tr> |
See Table |
Simple table row | <strow> |
<tr> |
See Table |
Subscript | <sub> |
<sub> |
(MDITA extended profile) <sub> in HDITA syntax |
Superscript | <sup> |
<sup> |
(MDITA extended profile) <sup> in HDITA syntax |
Title | <title> |
|
# or === underline for topic |
Topic | <topic> |
<article> |
No explicit markup |
Topic metadata | <topicmeta> |
Not applicable | Not applicable |
Topic reference | <topicref> |
<a href> inside a <li> |
[link](/URI "title") inside a list item |
Underline | <u> |
<u> |
Not applicable |
Unordered list | <ul> |
<ul> |
See List item |
This topic lists the new XML element types that are part of LwDITA and how to represent them in XDITA and HDITA. These new element types are not available in the MDITA core profile and, if needed, can be represented with their HDITA equivalents as part of the MDITA extended profile.
Component | XDITA | HDITA |
---|---|---|
Audio | <audio> |
<audio> |
Autoplay | <media-autoplay> |
@autoplay in <audio> or
<video> |
Controls | <media-controls> |
@controls in <audio> or
<video> |
Loop | <media-loop> |
@loop in <audio> or
<video> |
Muted | <media-muted> |
@muted in <audio> or
<video> |
Poster | <video-poster> |
@poster in <video> |
Source | <media-source> |
<source> |
Track | <media-track> |
@track in <audio> or
<video> |
Video | <video> |
<video> |
This topic lists the DITA 1.3 attributes that are available in LwDITA and how to represent them in XDITA and HDITA.
Component/Set | XDITA | HDITA |
---|---|---|
Architecture attributes | ||
ditaarch | @xmlns:ditaarch |
Not applicable |
DITAArchVersion | @ditaarch:DITAArchVersion |
Not applicable |
Domains | @domains |
Not applicable |
Localization attributes | ||
Direction |
|
@dir |
Language | @xml:lang |
@lang |
Translate | @translate |
@translate |
Data definition | ||
Name | @name |
Not applicable |
Value | @value |
Not applicable |
Figure display attributes | ||
Expanse | @expanse |
Not applicable |
Frame | @frame |
Not applicable |
Scale | @scale |
Not applicable |
Filtering attribute | ||
Props | @props |
@data-props |
Footnote control | ||
Callout | @callout |
Not applicable |
Image size | ||
Height | @height |
@height |
Width | @width |
@width |
Note type | ||
Type | @type |
@data-type |
Processing attribute | ||
Output class | @outputclass |
@class |
Reference attributes | ||
Link target |
|
@href |
Format of target resource | @format |
@type |
Processing role | @processing-role |
@data-processing-role |
Relationship of source to target | @scope |
@rel |
Reuse attributes | ||
Identifier |
|
@id |
Content reference | @conref |
@data-conref |
Key definition | @keys |
@data-keys |
Key reference | @keyref |
@data-keyref |
Video size | ||
Height | @height |
@height |
Width | @width |
@width |
With the exception of key reference, attributes are not available in the MDITA core profile. In the MDITA extended profile, you can express attributes using their HDITA representation.
In an MDITA core-profile topic, a key reference is represented using the GitHub Flavored
Markdown syntax for shortcut reference links: [key-value]
. There is no
equivalent for content reference in the MDITA core profile.
The following individuals participated in the creation of this document and are gratefully acknowledged.
In addition, the OASIS DITA Technical Committee also would like to recognize the following people for their insights and support:
The following table contains information about revisions to this document.
Revision | Date | Editor | Description of changes |
---|---|---|---|
01 | 5 November 2016 | Carlos Evia | Created stub files. |
02 | 06 December 2016 | Kristen James Eberlein | Generated working draft #1 |
03 | 29 December 2016 | Kristen James Eberlein | Edits to appendix A. Generated working draft #2. |
04 | 23 January 2017 | Kristen James Eberlein | Generated working draft #3. |
05 | 30 January 2017 | Carlos Evia | Generated working draft #4. |
06 | 2 February 2017 | Carlos Evia | Generated working draft #5. |
07 | 6 February 2017 | Carlos Evia | Generated working draft #6. |
08 | 16 February 2017 | Carlos Evia | Generated working draft #7. |
09 | 21 February 2017 | Carlos Evia | Generated working draft #8. |
10 | 8 March 2017 | Carlos Evia | Separated MDITA in core and extended profiles. Generated working draft #9. |
11 | 20 March 2017 | Carlos Evia | Generated working draft #10. |
12 | 8 May 2017 | Carlos Evia | Incorporated feedback from internal SC review and generated working draft #11. |
13 | 25 May 2017 | Carlos Evia | Made content and editorial changes after call with K. Eberlein. Generated working draft #12. |
14 | 25 May 2017 | Kristen James Eberlein | High-level edit to enforce consistent terminology and usage. Generated working draft #13. |
15 | 29 May 2017 | Kristen James Eberlein | Substantial rework of 2 "Why Lightweight DITA and its children." Generated working draft #14. |
16 | 29 May 2017 | Kristen James Eberlein | Incorporated material from Michael Priestley and generated working draft #15. |
17 | 02 June 2017 | Kristen James Eberlein | Edited footnote topic. Generated working draft #16. |
18 | 05 June 2017 | Carlos Evia | Generated working draft #17 for consideration by the DITA TC. |
19 | Generated working draft #18. It includes the following changes:
|
||
20 | 26 June 2017 | Carlos Evia | Added <footnotes> to table of elements |
21 | 26 July 2017 | Carlos Evia | Improved footnote topic and examples |
22 | 17 August 2017 | Carlos Evia | Removed proposed footnote element/behavior and modified multimedia elements based on multimedia domain proposal |
23 | 21 August 2017 | Carlos Evia | Added specialization topic; generated working draft #19 |
24 | 19 September 2017 | Carlos Evia | Incorporated subcommittee feedback; generated working draft #20 |
25 | 9 October 2017 | Carlos Evia | Incorporated TC feedback. Added Alan Houser to list of editors. Generated working draft #21 |
26 | 17 October 2017 | Carlos Evia | Incorporated TC feedback. Generated Committee Note 01 version |
27 | 12 January 2018 | Carlos Evia | Incorporated feedback from public review #1 |
28 | 08 February 2018 | Carlos Evia | Incorporated changes for public review #2 |
29 | 27 March 2018 | Carlos Evia | Generated Committee Note 01 version 1 |
<dlentry>
cannot be mapped directly to HTML5, an author can preserve the structure and attributes of a definition list in HDITA and MDITA with custom data attributes<img>
is always treated as an inline element; an <img>
inside a <fig>
is treated as a block element<title>
should map to both <title>
and <h1>
in HDITA.