A set of code samples designed to demonstrate what is possible for each of the "flavors" of Lightweight DITA. All examples are based on sections of various TRS-80 manuals from the late-1970s/early-1980s that have either lapsed out of copyright or have been donated to the Public Domain. Includes sample marketing material, computer hardware content, software samples, legal frontmatter and glossary.
These files represent one interpretation as to how Lightweight DITA markup ought to be done, based on information available in the current version of the Lightweight DITA Committee Note, and the sample files that come with it.
The following sets of files build in complexity, so that the reader can understand the key working differences between each flavor of LwDITA.
It is recommended that you use 3.x or higher version of the DITA Open Toolkit to process the files, and to use the latest LwDITA DTDs to validate your own LwDITA content where possible.
These files were created using MDITA Core markup. This is the "base" version, and contains only what is allowed in an MDITA Core LwDITA set of content. Tables utilize standard GitHib markup, with one including valid HTML (not HDITA) code to distinguish points within a table cell.
These files were created using MDITA Extended markup, building upon the previous version by including YAML headers and mixed HDITA markup for things like the definition lists that appear in the glossary.
This set of sample files are the same as the previous example, but with the addition of keyrefs. The values are set in the "map" file (index.md) and are expressed in the individual MDITA topics using HDITA markup.
These files are functionally the same as the "MDITA Extended version" with keys, but is based entirely on HDITA markup. It is based on HTML5, and all files end with the ".html" suffix.
These files are functionally the same as the MDITA Extended version and the HDITA version, but using XDITA markup. These files should be directly usable in any DITA 1.3 compliant setup, though XML editors may be "confused" by the Lightweight DITA DOCTYPE/lw-topic.dtd declaration at the beginning of each topic, and note that the multimedia elements within "three_expanded_systems.dita" may not work using DITA 1.3 DTDs instead of those for LwDITA. Also note that the tables follow simpletable formatting, as required within LwDITA.
This version of the files are done using "full" DITA 1.3, so most topics are typed and follow DITA writing best practices, while still remaining faithful to tone and voice of the original source material. The topics are all collected together within a bookmap that contains frontmatter material, has keys referenced in a separate keystore, topics arranged in chapters, and a glossary section comprised of individual glossentry topics sorted within a referenced sub-map. The tables within the document follow full CALS layout, and while multimedia is not yet fully supported within DITA 1.3, an existing workaround involving an iframe has been used. While this version still requires some polish, the existing code is workable.
My thanks to IXIASOFT who allow me time to participate in various OASIS committees (such as the LwDITA SC and the DITA Adoption TC), and related projects, such as this one. Add many kudos to Dr. Carlos Evia who went through all of the code examples and systematically fixed all of the things I had missed.