Xmlmind XML Editor - Dita Support: Hussein Shafie September 25, 2020 Xmlmind Software
Xmlmind XML Editor - Dita Support: Hussein Shafie September 25, 2020 Xmlmind Software
Hussein Shafie
XMLmind Software
XMLmind XML Editor - DITA Support
Table of Contents
1. About DITA support in XMLmind XML Editor ............................................................................................. 1
1.1. Lightweight DITA support .................................................................................................................... 2
2. DITA map reference ......................................................................................................................................... 3
2.1. DITA map menu .................................................................................................................................... 3
2.2. DITA map tool bar ................................................................................................................................ 6
2.3. DITA map bindings ............................................................................................................................... 8
3. DITA topic reference ........................................................................................................................................ 9
3.1. DITA topic menu ................................................................................................................................... 9
3.2. DITA topic tool bar ............................................................................................................................. 13
3.3. DITA topic bindings ............................................................................................................................ 20
3.4. Using the indexterm editor .................................................................................................................. 22
4. Useful features ................................................................................................................................................ 24
4.1. Controlling the numbering of ordered lists ......................................................................................... 24
4.2. Giving a background color to table cells ............................................................................................ 25
4.3. Fancy code blocks ............................................................................................................................... 25
4.3.1. Syntax highlighting ................................................................................................................... 27
4.4. Rich media content .............................................................................................................................. 28
5. Content inclusion ............................................................................................................................................ 36
5.1. Easy content inclusion ......................................................................................................................... 36
5.2. Content inclusion: an alternative, low-level, method .......................................................................... 38
5.3. Limitations and specificities of the implementation of transclusion in XMLmind XML Editor .......... 38
6. Preprocessing options ..................................................................................................................................... 38
i
XMLmind XML Editor - DITA Support
As of version 7.2, XXE allows to create, edit and convert DITA documents conforming to the DITA 1.3 DTD,
W3C XML Schema or RELAX NG schema.
In fact, when XXE v7.2+ 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":
This should not be a problem as DITA 1.3 is a superset of DITA 1.2. However if for any reason, you prefer to
stick to DITA 1.2 elements, please download and install the XXE add-on called "Keep using DITA 1.2". This is
done using menu item Options → Install Add-ons.
DITAVAL conditional processing profiles and subject scheme maps are also supported.
Using the DITA W3C XML Schema or RELAX NG schema rather than the DITA
DTD
By default, a DITA document created using XMLmind XML Editor (e.g. File → New) conform to the DITA
DTD and not to the W3C XML Schema or to the RELAX NG schema.
This can be easily changed by uncommenting out the alternative documents templates found in
XXE_install_dir/addon/config/dita/topic.xxe, map.xxe, bookmap.xxe, ditaval.xxe,
<!-- Same templates but using a RELAX NG schema rather than a DTD ==========
<template name="Concept" location="template/rng/concept.dita"
category="DITA" order="510" />
<template name="Task (Strict)" location="template/rng/strictTask.dita"
category="DITA" order="520" />
...
<template name="Multiple Topics" location="template/rng/dita.dita"
category="DITA" order="600" />
======================================================================== -->
(1) Or
better, by customizing the DITA configuration as explained in XMLmind XML Editor - Configuration and
Deployment.
1
XMLmind XML Editor - DITA Support
XMLmind DITA Converter (ditac for short) has exactly the same level of DITA support as XMLmind XML
Editor.
Note that ditac has no problem processing a DITA document pointing to a RELAX NG schema, rather than to a
DTD or W3C XML Schema:
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".
MDITA support
Out of the box, XMLmind XML Editor supports a so-called MDITA Extended Profile. However there are many
“flavors” of Markdown, that's why this Extended Profile may be customized.
This is done by defining a system property called "ditac.load.options" containing one or more
load.mdita.XXX options. These options are all documented in "MDITA support".
<property name="ditac.load.options">
load.mdita.autolink true
</property>
More information about the <property> configuration element and the customize.xxe configurations files
in XMLmind XML Editor - Configuration and Deployment.
Remember
MDITA support requires using Java 1.8+ to run XMLmind XML Editor.
2
XMLmind XML Editor - DITA Support
Check map
Conditional Processing Profile
Displays a dialog box allowing to specify a conditional processing profile (a .ditaval file) which
is to be applied to the map being edited and also the medium targeted by this map. The conditional
processing profile is used by the Check Map command and also by all the Convert commands found
in the Convert Document menu.
The target medium specified in this dialog box is used only by the Check Map command. If you
specifically target a print form (PDF, PostScript, RTF, etc) for your deliverable, check Print. In any
other case, check Screen.
Figure 1. The dialog box displayed by menu item "Conditional Processing Profile"
Remember
Note that the values specified in the above dialog box are remembered for use during
subsequent editing sessions. For example, in the case of the above screenshot, if you
reopen the same map later, this map will still be filtered by print.ditaval and its
target medium will still be Print, and this even if you do not explicitly use menu
item Map → Conditional Processing Profile during the new editing session.
Check Map
Extensively check the map being edited. This task which can be lengthy is run in background. While
this task is running, a non-modal dialog box displays all the errors and warnings found in the map
being edited, its submaps and all the topics referenced by these maps. If no errors or warnings are
found, the dialog box is automatically closed. Otherwise it stays opened allowing you to review each
error or warning. After you are done, you'll have to close the dialog box by clicking Close if you want
to be able to re-run Check Map.
3
XMLmind XML Editor - DITA Support
As you can see it in the above screenshot, clicking on an underlined filename or URL opens the
corresponding topic or map in XMLmind XML Editor and selects the element having the error or a
warning.
Note
The "Convert to RTF", WML, DOCX, ODT, entries documented below are absent in
XMLmind DITA Editor. They are found only in XMLmind XML Editor.
Attention
The items of this menu are all disabled if the document being edited needs to be saved to disk.
Convert to XHTML
Convert to XHTML [one page]
Converts the document being edited to multi page or single page XHTML 1.0.
Convert to Web Help
Converts the document being edited to Web Help containing XHTML 5 pages.
Convert to HTML Help
Converts the document being edited to a .chm file. This command is disabled on platforms other than
Windows.
Requires:
4
XMLmind XML Editor - DITA Support
Requires:
Convert to EPUB
Converts the document being edited to an .epub file.
Convert to PDF
Convert the document being edited to PDF.
Changing the look and contents of the files generated by the Convert
Document menu
There are three ways to change the look and contents of the files generated by the items of the Convert
Document menu.
1. Specifying custom XSLT stylesheet parameters. This is done by selecting any of the items of menu
"Convert Document" and then, when the URL chooser dialog box is displayed, clicking "Document
conversion parameters" to expand the conversion parameters pane.
For example, adding parameter center with value "fig table" allows to center figures and tables in the
generated files.
The reference manual of the parameters of the XSLT stylesheets used to perform the conversion is found in
XMLmind DITA Converter Manual - XSLT stylesheets parameters. This reference manual can be directly
accessed from the "Document conversion parameters" pane.
5
XMLmind XML Editor - DITA Support
The document being edited is converted to other formats by the means of XSLT stylesheets. This menu
item allows to:
However, when the document being edited is converted to an HTML-based format (Web Help, EPUB,
HTML Help, etc), the HTML pages which are automatically generated by the aforementioned XSLT
stylesheets are styled mainly by CSS stylesheets. When this is the case, this menu item allows additionally
to:
3. To a lesser extent, changing the options of the XMLmind DITA Convert (ditac) preprocessor. This is done
by using Options → Customize Configuration → Preprocessing Options.
For example, selecting option group "Convert to PDF, PostScript" and then selecting "Generate as
backmatter" in the Index combobox allows to add an index at the end of the generated PDF files.
Note that a technical writer is not expected to know which parameter, option or style is to be specified to get
the desired effect. Unless she/he is the local guru, a technical writer is expected to post a support request to the
xmleditor-support public, moderated, mailing list in order to learn this. But at least the three above facilities
allow her/him to customize her/his deliverables without having to hand edit configuration files.
Button Description
Insert Topicref Before Insert a topicref before selected topicref. Displays a dialog box allowing to specify
the @href attribute and/or the @navtitle of the topicref to be inserted.
Insert Topicref Into Insert a topicref as the last child of selected topicref. Displays a dialog box
allowing to specify the @href attribute and/or the @navtitle of the topicref to
be inserted.
Insert Topicref After Insert a topicref after selected topicref. Displays a dialog box allowing to specify
the @href attribute and/or the @navtitle of the topicref to be inserted.
Edit Topicref Displays a dialog box allowing to change the @href attribute and/or the
@navtitle of selected topicref.
Move Up Move selected element up, that is, swap it with its preceding sibling node.
Requires the element to be explicitly selected.
6
XMLmind XML Editor - DITA Support
Button Description
Move Down Move selected element down, that is, swap it with its following sibling node.
Requires the element to be explicitly selected.
Promote Decrease the nesting level of selected topicref, possibly changing its type (e.g. a
<topicref> element becomes a <chapter> element).
Demote Increase the nesting level of selected topicref, possibly changing its type (e.g. a
<chapter> element becomes a <topicref> element).
Add reltable Displays a menu allowing to add a <reltable> without or with a <relheader>
after selected element.
Tip
The entries of this menu are generally disabled unless you
select the last element (or any descendant of last element) of
the map.
Reltable column Displays a menu similar to the "Table column" menu found in Table editor.
Reltable row Displays a menu similar to the "Table row" menu found in Table editor.
Show Level Displays a menu containing "Show Level 1", "Show Level 2", ..., "Show Level
9" items. "Show Level N" means: expand all the collapsible elements of the map
up to nesting level N and recursively collapse all the collapsible elements having a
nesting level greater than N.
Edit Referenced Topic Opens in read-only mode the topic or map referenced in the selected topicref.
or Map in Read-only
Mode
Edit Referenced Topic Opens in normal read-write mode the topic or map referenced in the selected
or Map topicref.
7
XMLmind XML Editor - DITA Support
Figure 3. A "Edit topicref" dialog box used to edit a <bookabstract> (a kind of <topicref> found in the
<frontmatter> of a <bookmap>)
• If you want to set the @href attribute of the edited or newly inserted <topicref>:
1. Click the Browse button and use the file chooser to select a file containing one or more DITA
topics.
After the topic file is selected, the status fields of the dialog box are updated to reflect the type and
title of the first topic found in the file. The "Topic ID" combobox is updated too and contains the IDs
of all the topics found in the selected file.
2. In case the file selected in the previous step contains several topics, optionally select the ID of the
target topic. This option adds a fragment #topic_ID to the value of the @href attribute.
• If you want to set the @href attribute of the edited or newly inserted <topicref> to a newly created
topic, click the Create button. This displays the same dialog box as menu item File → New. Make sure
to create a DITA topic.
• If you want to set the @navtitle attribute of the edited or newly inserted <topicref>:
2. Optionally click "Override default navigation title" if you want this <topicref> title to replace
the referenced topic title in the deliverable (HTML, PDF, RTF, etc) which is to be generated out
of the DITA map. This option adds a locktitle="yes" attribute to the edited or newly inserted
<topicref>.
8
XMLmind XML Editor - DITA Support
Action Description
Alt+Shift-Up Move Up
Alt+Shift-Left Promote
Alt+Shift-Right Demote
Drag Dragging selected topicref drags the value of its @href attribute. Elsewhere,
default drag behavior.
Drop Dropping a file or URL onto a topicref displays a popup menu containing Insert
Topicref Before, Insert Topicref Into, Insert Topicref After, Edit Topicref and
Cancel. Elsewhere, default drop behavior.
Paste As
Paste As
• Extensive efforts are made to decently support the “non-filtered HTML” copied by
MS-Word to the clipboard.
• When an application other than MS-Word is used, the quality of the result you'll get in
XXE highly depends on what has been copied to the clipboard. In all cases, XXE tries
very hard to import something simple, clean and valid at the expense of the fidelity to
the original data.
9
XMLmind XML Editor - DITA Support
The pasted data replaces the text or node selection if any. When there is no selection,
XMLmind XML Editor automatically determines a valid insertion location at or following
the caret position.
If XMLmind XML Editor fails to find such valid insertion location, the rich text is
converted to valid DITA and then copied to the clipboard, overwriting the original data put
there by the third-party application. This allows to use the “normal” Paste Before, Paste or
Paste After commands to paste the data elsewhere in the document.
Tip
This menu entry allows not only to paste snippets copied from word
processors or web browsers, but also to import entire documents or
HTML pages. In order to import the entire document into XXE:
Tip
If, using MS-Word, you want to copy a piece of text rather than a
paragraph, do not include the hidden character found at the very end of a
paragraph (the paragraph mark) in your selection.
The last two menu entries assume that each text line specifies a table row and that, within a
text line, the contents of the table cells are separated by tab characters.
(2)
Note that Ctrl-V, that is, the plain Edit → Paste command, would not work here.
10
XMLmind XML Editor - DITA Support
Tip
If you need to paste the copied text as an ordered list, first paste this text
as an itemized list then convert the pasted list to an ordered list using Edit
→ Convert (Ctrl-T).
The following entries of this submenu allow to paste the image copied to the clipboard as:
• <image>,
• <fig>.
Menu entry "image" replaces the text or node selection if any. When there is no selection,
this menu entry pastes its element at caret position (just like Edit → Paste).
All the other menu entries also replace the text or node selection if any. When there is no
selection, these menu entries paste their elements at any valid position in the document
following the caret position.
Indexterm editor
Insert or Edit indexterm
If the caret is anywhere inside an <indexterm> element or if a single element or node is explicitly
selected anywhere inside an <indexterm> element, this menu item displays an <indexterm> editor
dialog box allowing to modify this <indexterm> element.
Otherwise, this menu item displays an <indexterm> editor dialog box allowing to create a new
<indexterm> element and then to insert it at caret position.
Tip
If some text has been selected, field Term of the dialog box is automatically
initialized with the text selection. Therefore the simplest way to create an
<indexterm> element is first to select the term in the body of the document, then
Moving elements
Move Up
Move selected element up, that is, swap it with its preceding sibling node. Requires the element to be
explicitly selected.
Move Down
Move selected element down, that is, swap it with its following sibling node. Requires the element to
be explicitly selected.
11
XMLmind XML Editor - DITA Support
Note
The "Convert to RTF", WML, DOCX, ODT, entries documented below are absent in
XMLmind DITA Editor. They are found only in XMLmind XML Editor.
Attention
The items of this menu are all disabled if the document being edited needs to be saved to disk.
Convert to XHTML
Convert to XHTML [one page]
Converts the document being edited to multi page or single page XHTML 1.0.
Requires:
Requires:
Convert to EPUB
Converts the document being edited to an .epub file.
12
XMLmind XML Editor - DITA Support
Convert to PDF
Convert the document being edited to PDF.
8 11 13 15 17 19 20
1 2 3 5 7 9
10 12 14 16 18 21
4 6
1 Toggle i
2 Toggle b
3 Toggle tt
4 Convert to plain text
5 Add xref
6 Set ID
7 Demote list item
8 Promote list item
9 Change list type
10 Add list
11 Add p
12 Add list item
13 Add footnote
14 Add note
15 Add pre
16 Add image
17 Add MathML equation
18 Insert media objects
19 Add section
20 Add table
21 Table editor
Button Description
Toggle i “Toggle” element <i>. Next to this toggle is found an arrow button displaying
a menu containing additional checkboxes for the following elements: <term>,
<cite>, <tm>, tm[reg].
Note
The DITA tool bar starts with a number of “text style” toggles.
These toggles emulate the behavior of the Bold, Italic,
Underline, etc, toggles found in the tool bars of almost all
13
XMLmind XML Editor - DITA Support
Button Description
word-processors. More information about text style toggles in
"About text style toggles".
Toggle b “Toggle” element <b>. Next to this toggle is found an arrow button displaying a
menu containing additional checkboxes for the following elements: <keyword>,
<uicontrol>, <option>.
Toggle tt “Toggle” element <tt>. Next to this toggle is found an arrow button displaying a
menu containing additional checkboxes for the following elements: <filepath>,
<varname>, <cmdname>, <apiname>, <codeph>, <xmlelement>, <xmlatt>,
<xmlpi>,
Change case Displays a menu letting the user change the character case of selected text. If a
single node is selected, this converts the character case of all the text contained in
this node. If there is no selection of any kind, this converts the character case from
caret position to end of word, then it moves the caret to the next word.
lowercase
All characters are converted to lowercase characters. Keyboard shortcut:
Esc l.
UPPERCASE
All characters are converted to uppercase characters. Keyboard shortcut:
Esc u.
Capitalize Each Word
First character of a word is converted to an uppercase character. The
other characters are converted to lowercase characters. Keyboard
shortcut: Esc c.
Add xref Displays a menu letting the user add a link —an <xref> element— to your DITA
topic.
xref
Converts the selection, if any, to an “internal link”; simply inserts an
empty “internal link” at caret position otherwise.
14
XMLmind XML Editor - DITA Support
Button Description
xref[html]
Converts the selection, if any, to an “external link”; simply inserts
an empty “external link” at caret position otherwise. An external
link is an <xref> element with attributes @scope=external and
@format=html.
Set ID This button displays a menu having 3 entries: Set ID, Unset ID and List Anchors
and Links. This last menu entry displays a dialog box letting the user search and
select anchors (that is, any element having an ID) and links.
Decrease nesting level Convert a paragraph to a list item and a list item to a paragraph, the new element
having a lesser nesting level than the original one. This button automatically splits
lists when needed to.
This is the inverse command of "Increase nesting level". More Information
below.
Increase nesting level Convert a paragraph to a list item and a list item to a paragraph, the new element
having a greater nesting level than the original one. This button automatically
creates lists or merges adjacent lists when needed to.
Note that the two above buttons strictly alternate between paragraphs and list
items. This means that you'll often have to click a button twice in a row. For
example, in order to create a nested list, first click anywhere inside a list item and
then click "Increase nesting level" twice. First click converts the list item to a
plain paragraph contained in the preceding list item. Second click converts this
paragraph to the first item of a new nested list.
For the two above buttons to function, any of the following conditions should be
met:
15
XMLmind XML Editor - DITA Support
Button Description
• A sequence of list items must be explicitly selected.
• A list must be explicitly selected. This is equivalent to selecting all its items.
• A sequence of blocks starting with a paragraph must be explicitly selected.
• A paragraph must be implicitly selected. In order to implicitly select a
paragraph, suffice to click anywhere inside it. However if this paragraph is
the first child of a list item, then it's the list item which is implicitly selected.
• A list item must be implicitly selected. In order to implicitly select a list item,
suffice to click anywhere inside it.
Tip
When a paragraph is to be converted to a new list using this
"Increase nesting level" button, there is a quick and simple
way to specify the kind of list to be created:
Change list type Displays a menu allowing to change the type of the current list.
Additional menu entry "Continue Numbering", which is rendered as a checkbox,
adds/removes "continue" to/from the @outputclass attribute of an ordered
list. Additional menu entry "Inherit Numbering", which is rendered as a
checkbox, adds/removes "inheritnum" to/from the @outputclass attribute
of an ordered list. More information about these values of the @outputclass
attribute in Section 4.1. Controlling the numbering of ordered lists.
The list must be explicitly or implicitly selected. In order to implicitly select a list,
suffice to click anywhere inside it.
Known problems
Except for the simplest cases, "Continue Numbering" is not correctly
rendered in the styled view of the document. For example, "Continue
Numbering" has no visual effect on <ol> elements having an <ol>
ancestor.
16
XMLmind XML Editor - DITA Support
Button Description
etc, there are no such limitations and "Continue Numbering" should
give you the expected results.
Add list Displays a menu allowing to select a type of list (<ul>, <ol>, <dl>). The chosen
list is added after node selection or after caret at a location where it is valid to do
so and where it makes sense to do so (see note).
See also Section 4.1. Controlling the numbering of ordered lists.
Add <p> Add a p after node selection or after caret at a location where it is valid to do so
and where it makes sense to do so.
Note
This command and all the following commands will never
add an element inside a <p>, even it is valid to do so. These
commands add elements always after a <p>. That is, a <p>
element is always considered by these commands as being a
plain paragraph and never as being a division.
Add list item Add a list item of the right type after current list item. For this command to
work, suffice to click anywhere inside an <sl>, <ul>, <ol>, <dl>, <choices>,
<substeps>, <steps>, <steps-unordered>.
Add footnote Displays a menu allowing the user to insert a footnote (<fn>) or a reference to a
footnote (<xref type="fn">) at caret position or after caret at a location where
it is valid to do so.
If a reference to a footnote is already selected, the "xref[fn]" menu entry lets the
user choose the ID of the footnote to be referenced.
Add note Displays a menu allowing the user to add different kinds of admonitions after
node selection or after caret at a location where it is valid to do so.
Add pre Displays a menu allowing the user to add a <pre>, <lines>, <screen>,
<codeblock> or a <msgblock> after node selection or after caret at a location
where it is valid to do so and where it makes sense to do so (see note).
Menu entry "Normalize Whitespace" normalizes whitespace in implicitly or
explicitly selected program listing. Normalizing whitespace means: expanding
tab characters to a number of space characters and removing the space characters
which are common to the beginning of all text lines (that is, removing the
superfluous “indentation” in the program listing, if any).
17
XMLmind XML Editor - DITA Support
Button Description
• OR add an <imagemap> element after node selection or after caret at a
location where it is valid to do so and where it makes sense to do so (see
note).
After using this "imagemap" menu item, right-click anywhere inside the
newly inserted <imagemap> element and select "Edit Image Map" from
the contextual popup menu to display an image map editor. This image map
editor allows to add “hot areas” to your image. More information in The
"Edit Image Map" dialog box.
Add MathML Displays a menu letting the user add various kinds of MathML equations after
equation node selection or after caret at a location where it is valid to do so.
Insert media object Displays a menu allowing to insert a media element at caret position.
object(audio)
An <object> element allowing to add audio to your topic.
object(video)
An <object> element allowing to add video to your topic.
object(youtube)
An <object> element allowing to add a YouTube video to your topic.
xref(play)
An <xref> element containing <?onclick play()?>.
Last menu item allows to insert an <?onclick?> processing-instruction at caret
position or, if an <?onclick?> processing-instruction is selected, to edit it.
More information about the above “media objects” in Section 4.4. Rich media
content.
Add section Add a <section> or an <example> after node selection or after caret at a
location where it is valid to do so and where it makes sense to do so (see note).
Add table Displays a menu allowing the user to add a <simpletable> or a <table> after
node selection or after caret at a location where it is valid to do so and where it
makes sense to do so (see note).
Table editor See Table editor below. See also Section 4.2. Giving a background color to table
cells.
Table editor
This table editor may be used to edit <simpletable>s as well as CALS <table>s. Most table editing
commands can be repeated by using Edit → Repeat (Ctrl-A).
Note that using this table editor, or simply saving a topic, or checking a topic for validity, guarantees that the
@cols attribute of a <tgroup> is up to date. That is, you may forget about the @cols attribute, XMLmind
XML Editor will always compute it for you.
18
XMLmind XML Editor - DITA Support
Paste Before Paste copied or cut column before column containing specified cell.
Paste After Paste copied or cut column after column containing specified cell.
Sort Rows Sort all the rows of the table according to the string values of the cells of
the “selected column”. (The “selected column” is the column containing
specified cell.)
A dialog box is displayed allowing to specify the following sort options:
Order
Dictionary is the language-specific alphabetical order.
Example: (Charles, best, Albert) is sorted as (Albert,
best, Charles).
Table row Insert Insert a row before row containing specified cell.
Before
For a command
in this menu Note
to work, click
Note that row editing commands are enabled, not
anywhere inside
only by implicitly or explicitly selecting a table
a cell(3) or cell or any of its descendants, but also by explicitly
explicitly select selecting a table row.
a row.
19
XMLmind XML Editor - DITA Support
Paste Before Paste copied or cut row before row containing specified cell.
Paste After Paste copied or cut row after row containing specified cell.
Table cell Increment Increment the number of columns spanned by specified cell. Not relevant
Column Span for <simpletable>s.
For a command
in this menu Decrement the number of columns spanned by specified cell. Not
Decrement
to work, click relevant for <simpletable>s.
Column Span
anywhere inside
a cell(3). Increment Increment the number of rows spanned by specified cell. Not relevant for
<simpletable>s.
Row Span
Decrement Decrement the number of rows spanned by specified cell. Not relevant
Row Span for <simpletable>s.
Set Color Displays a dialog box allowing to give a background color to specified
cell.
Unlike the other entries of this menu, this entry allows to give a
background color, not only to specified cell, but also to one or more of
any of the following explicitly selected elements: <simpletable>,
<sthead>, <strow>, <stentry>, <tgroup>, <thead>, <tbody>,
<row>, <entry>.
Action Description
20
XMLmind XML Editor - DITA Support
Action Description
Del Delete selection if any. Otherwise, if caret is at the end of a paragraph, list item or
a few other kinds of block, join with following block. Otherwise, delete character
following caret.
BackSpace Delete selection if any. Otherwise, if caret is at the beginning of a paragraph, list
item or a few other kinds of block, join with preceding block. Otherwise, delete
character preceding caret.
Ctrl-Enter Add same block after the paragraph, list item or a few other kinds of block which
is the ancestor of selected node.
Drop an object. If the drop occurs above an element having an @href attribute other than an
<image> (e.g. an <xref>), the dropped string is considered to be an URL and is
used to change the value of the @href attribute.
Note that this kind of drop attempts to relativize the dropped URL against the
location of the drop site. For example, if you drop "file://home/john/doc/
topic1.dita" onto an <xref> contained in file "file://home/john/doc/
ref/reference2.dita", its @href is set to "../topic1.dita".
Drag one of the “handles” Resize the image, but always preserve its aspect ratio.
displayed around an
Pressing Ctrl (Cmd on the Mac) while dragging the handle allows to distort the
image. (The “handles” are
image.
displayed after clicking
on the image.)
Drag a separator found Resize the table column. More precisely this gives an appropriate proportional
between two table width (e.g. <colspec colwidth="3*">) to all table columns.
columns.
21
XMLmind XML Editor - DITA Support
• If you want to get this kind of entry in your back of the book index:
P
Pet 12
specify Term=Pet.
P
Pet
Cat 26
P
"+" 54
specify Term="+", Sort as=plus. Without this Sort as specification, the index entry corresponding to
"+" would have been found in the Symbols category:
Symbols
"*" 53, 78
"+" 54
"-" 55, 91-95
22
XMLmind XML Editor - DITA Support
...
D
Domesticated animals 34 See also Pet
Note that the content of the See also field must refer to an existing index entry. That's why instead of
typing "Pet", you can select this index entry by using the dialog box displayed by the Pick from list
button found at the right of the See also row.
The above dialog box supports autocompletion. Note that if, for example, you want specify compound term
"Pet Cat Siamese", you must type a space character between each simple term.
F
Felis catus See Pet, Cat
specify Term=Felis catus, select "Redirect to the following term" then specify Redirect=Pet,
Redirect #2=Cat. (In the above example, notice that Felis catus has no associated page number.)
Like See Also, the content of the Redirect field must refer to an existing index entry. Unlike See Also, a
Redirect entry is merely a redirection to an actual index entry.
O
Operation
Additive
"+" 87-90
1. Insert a first <indexterm> element at the beginning the range (this will give us page number 87).
23
XMLmind XML Editor - DITA Support
In order to do that, use Topic → Insert or Edit indexterm and specify Term=Operation, Term
#2=Additive, Term #3="+", Sort as #3=plus.
Then check "Start range having the following name" and give your range an identifier by specifying
"plus_reference" in the Start range field.
2. Insert another <indexterm> element at the end the range (this will give us page number 90).
In order to do that, use Topic → Insert or Edit indexterm, check "End range having the following
name" and specify the same identifier, "plus_reference", in the End range field. All the other
fields must be left blank.
Note that instead of typing "plus_reference" in the End range field, you can select this identifier by
using the dialog box displayed by the Pick from list button found at the right of the End range field.
Related information
• The "Insert or Edit indexterm" menu item
4. Useful features
By default, the numbering of nested ordered lists automatically alternates between the "1." and "a." formats.
If you want more control on the numbering of ordered lists, then you'll have to specify one or more of the
following directives in the @outputclass attribute of the <ol> element.
lower-alpha
upper-alpha
lower-roman
upper-roman
decimal
Specifies the style of numbering.
start(positive_integer)
Numbering begins at specified positive_integer.
continue
Numbering begins where the preceding ordered list left off.
inheritnum
Numbering inherits from outer-level ordered lists. For example, using this feature (e.g. <ol
outputclass="upper-alpha inheritnum">), the items of a list nested at level 2 are labelled
"1.A.", "1.B.", "1.C.", etc.
Restriction
• When using XMLmind XSL-FO Converter v6.0+(4) to generate RTF, WML,
DOCX or ODT, directive inheritnum is supported but with minor limitations.
24
XMLmind XML Editor - DITA Support
Example: <ol outputclass="upper-roman start(10)"> specifies an ordered list which starts with an
"X.".
Note that it is still possible to specify any class name you want in the @outputclass attribute of the <ol>
element. Example: <ol outputclass="continue fancy-list">.
It's possible to give a background color to table cells by adding a bgcolor(color) directive, where color is
any CSS color value, to the @outputclass attribute of the following elements:
Example:
<table>
<tgroup cols="2" outputclass="bgcolor(#F0FFFF)">
<tbody>
<row>
<entry>C1,1</entry>
<entry>C1,2</entry>
</row>
<row outputclass="bgcolor(#FFFFF0)">
<entry>C2,1</entry>
<entry>C2,2</entry>
</row>
</tbody>
</tgroup>
</table>
Note that it is still possible to specify any class name you want in the @outputclass attribute of a table
element. Example: <simpletable outputclass="bgcolor(#FFFFF0) fancy-table">.
Adding line numbers, “expanding” tab characters and colorizing the source code contained in <pre>,
<codeblock> or any other element specializing <pre> is done by adding one or more of the following classes
to the @outputclass attribute of this element:
25
XMLmind XML Editor - DITA Support
line-numbers
line-numbers-N (where N is an integer > 0)
show-line-numbers
Colorize the source code contained in the <pre> element. L, a “programming language” such as c,
java, css, xml, specifies how the source code should be colorized.
More information about this feature, commonly called syntax highlighting, in next section.
tab-width-W (where W is an integer >= 0)
normalize-space
Specifies whether tab characters should be expanded to a number of space characters. W is the
maximum number of space characters for an expanded tab character, hence this value specifies the
location of “tab stops”. Examples: tab-width-4 means: expand tabs to up to 4 space characters;
tab-width-0 means: do not replace tabs by space characters.
In addition to replacing tab characters by a number of space characters, tab-width-W (where W >
0) also removes the space characters which are common to the beginning of all text lines. That is, it
removes the superfluous “indentation” in the <pre> element, if any. See example below.
Moreover tab-width-W (where W > 0) also removes the (useless) space characters found just before
newline characters.
normalize-space, an alias for tab-width-8, is also accepted for compatibility with the DITA-OT.
Remember
When the <outputclass> attribute of any element specializing <pre> contains class line-
numbers/line-numbers-N and/or class language-L , then class tab-width-8 is implicitly
specified too, that is, whitespace normalization is automatically performed. If this is not what
you want, please explicitly add class tab-width-0 to @outputclass.
is rendered as:
26
XMLmind XML Editor - DITA Support
1 /* Hello World */
2 #include <stdio.h>
3
4 int main()
5 {
6 printf("Hello World\n");
7 return 0;
8 }
is rendered as:
1 /tmp/
2 /usr/
3 bin/
4 lib/
5 local/
6 bin/
7 lib/
8 src/
9 src/
10 /var/
11
You can automatically colorize the source code contained in <pre>, <codeblock> or any other element
specializing <pre>. This feature, commonly called syntax highlighting, has been implemented using an open
source software component called "XSLT syntax highlighting".
If you want to turn on syntax highlighting in a DITA document, suffice to add attribute @outputclass to a
<pre>, <codeblock> or any other element specializing <pre>. The value of attribute @outputclass must
be any of: language-bourne (or -shell or -sh), language-c, language-cmake (or -make or -makefile),
language-cpp, language-csharp, language-css21 (or -css), language-delphi, language-ini,
language-java, language-javascript, language-lua, language-m2 (Modula 2), language-
27
XMLmind XML Editor - DITA Support
If you want to customize syntax highlighting for an HTML-based output format (XHTML, EPUB, etc), then
redefine any of the following CSS styles:
This can be done from within XMLmind XML Editor using Options → Customize Configuration →
Customize Document Conversion Stylesheets.
If you want to customize syntax highlighting for an XSL-FO-based output format (PDF, RTF, etc), then
redefine any of the following <attribute-set>s: hl-keyword, hl-string, hl-number, hl-comment, hl-
doccomment, hl-directive, hl-annotation, hl-tag, hl-attribute, hl-value, hl-doctype.
This can be done from within XMLmind XML Editor using Options → Customize Configuration →
Customize Document Conversion Stylesheets.
28
XMLmind XML Editor - DITA Support
Note
XMLmind XML Editor has buttons in its DITA Topic tool bar which allows to easily insert any
of the elements and processing-instructions described in this chapter.
SVG
It is possible to include SVG graphics in a DITA document either by reference or by inclusion. Use an <svg-
container>/<svgref> element pointing to an SVG file to include it by reference. Example:
<p><svg-container><svgref href="media/graphic.svg"/></svg-container></p>
It's also possible to use an <image> element pointing to an SVG file to include it by reference. Example:
<p><image href="media/graphic.svg"/></p>
Embedding SVG graphics in a DITA document can be achieved using the same <svg-container> element.
Example:
29
XMLmind XML Editor - DITA Support
<p><svg-container>
<svg:svg height="64.710144" version="1.1"
viewBox="0 0 104.28986 51.768115" width="130.36232"
xmlns:svg="http://www.w3.org/2000/svg">
...
</svg:svg>
</svg-container></p>
Notes:
• It is still recommended to include SVG graphics by reference using the <image> element rather then
<svg-container>/<svgref>. The <image> element has useful attributes (@width, @height, @scale,
@scalefit) allowing to adjust the dimension of the image. Moreover this elements permits on the fly
conversion between image formats.
• It is not recommended to embed SVG graphics in a DITA document as this is likely to cause many
validation problems.
• Only the following screen formats may contain SVG: XHTML 5, XHTML 5 Web Help and EPUB 3. Note
that only modern web browsers support XHTML 5 and XHTML 5 Web Help. Very few EPUB readers
(e.g. iBooks) support EPUB 3.
• All XSL-FO based formats (PDF, RTF, DOCX, etc) support SVG whatever the XSL-FO processor you
may use.
MathML
It is possible to include math in a DITA document either by reference or by inclusion. Use an
<mathml>/<mathmlref> element pointing to a MathML file to include it by reference. Example:
<p><mathml><mathmlref href="media/math.mml"/></mathml></p>
Embedding MathML in a DITA document can be achieved using the same <mathml> element. Example:
<p><mathml>
<m:math display="block"
xmlns:m="http://www.w3.org/1998/Math/MathML">
<m:row>
...
</m:mrow>
</m:math>
</mathml></p>
30
XMLmind XML Editor - DITA Support
Notes:
• For clarity, it is recommended to wrap <mathml> into the following equation elements: <equation-
inline>, <equation-block>, <equation-figure>.
(1)
The counter used to number to <equation-figure> elements having a <title> and the counter used
to number <equation-block> elements containing an empty <equation-number> are different.
Therefore mixing numbered <equation-figure>s and numbered <equation-block>s in the same
DITA document may result in a hard to understand equation numbering.
• Only the following screen formats may contain MathML: XHTML 5, XHTML 5 Web Help and EPUB 3.
Most modern web browsers (Firefox, Chrome) support XHTML 5 and XHTML 5 Web Help containing
MathML. Very few EPUB readers (e.g. iBooks) support EPUB 3.
• XSL-FO based formats(PDF, RTF, DOCX, etc) support MathML depending on the XSL-FO processor you
use:
– Apache FOP requires you to download and install the the JEuclid FOP plug-in.
– RenderX XEP does not support MathML.
– Antenna House Formatter supports MathML as an option.
– XMLmind XSL-FO Converter supports MathML out of the box.
Audio
Use the <object> DITA element to add audio to your DITA topics. Example:
audio.mp3 (audio/mpeg)
Notes:
• The @data and @type attributes are required. The value of the @type attribute must start with "audio/".
31
XMLmind XML Editor - DITA Support
• It is strongly recommended to specify alternate audio files as modern web browsers, while all supporting
the HTML 5 <audio> element, vary in their support of audio formats. This is done by adding <param>
child elements to the <object> element. Such <param> elements must have a name="source" attribute,
a valuetype="ref" attribute, a @value attribute referencing an audio file and preferably, a @type
attribute specifying the media type of the audio file.
• It is possible to add <param> elements corresponding to the attributes supported by the HTML 5
audio element (<crossorigin>, <preload>, <autoplay>, <mediagroup>, <loop>, <muted>,
<controls>). In the above example, we have added a <param> element corresponding to the @controls
HTML 5 attribute. Note that in the case of HTML 5 boolean attributes (<autoplay>, <loop>, <muted>,
<controls>), the @value attribute of a <param> is not significant. For example, in the case of the above
example, you could have specified "yes", "on", "1", etc, instead of "true".
• If the <object> element has a <desc> child element, then this <desc> element is used to generate
fallback content in case audio is not supported. If the object element has no <desc> child element, then
a simple fallback content is automatically generated by ditac. This automatic fallback content basically
consists in a link allowing to download the audio file.
• When ditac is used to generate an XSL-FO based format (PDF, RTF, etc), only the fallback content appears
in the output file.
• Lightweight DITA has an <audio> element, so there is no need to use an <object> element. The
equivalent of the above <object> example would be:
<audio>
<media-controls value="true"/>
<media-source value="media/audio.mp3"/>
<media-source value="media/audio.ogg"/>
<media-source value="media/audio.m4a"/>
<media-source value="media/audio.wav"/>
</audio>
Video
Use the <object> DITA element to add video to your DITA topics. Example:
video.mp4 (video/mp4)
32
XMLmind XML Editor - DITA Support
Notes:
• The @data and @type attributes are required. The value of the @type attribute must start with "video/".
• It is strongly recommended to specify alternate video files as modern web browsers, while all supporting
the HTML 5 <video> element, vary in their support of video formats. This is done by adding <param>
child elements to the <object> element. Such <param> elements must have a name="source" attribute,
a valuetype="ref" attribute, a @value attribute referencing a video file and preferably, a @type
attribute specifying the media type of the video file.
• It is possible to add <param> elements corresponding to the attributes supported by the HTML 5
<video> element (<crossorigin>, <poster>, <preload>, <autoplay>, <mediagroup>, <loop>,
<muted>, <controls>, <width>, <height>). In the above example, we have added a <param> element
corresponding to the <width>, <controls> and <poster> HTML 5 attributes. Note that in the case of
HTML 5 boolean attributes (<autoplay>, <loop>, <muted>, <controls>), the @value attribute of
a <param> is not significant. For example, in the case of the above example, you could have specified
"true", "on", "1", etc, instead of "yes".
• If the <object> element has a <desc> child element, then this <desc> element is used to generate
fallback content in case video is not supported. If the object element has no <desc> child element, then
a simple fallback content is automatically generated by ditac. This automatic fallback content basically
consists in a link allowing to download the video file. The <param> element corresponding to the
<poster> HTML 5 attribute, if present, is used to generate a nicer automatic fallback content.
• When ditac is used to generate an XSL-FO based format (PDF, RTF, etc), only the fallback content appears
in the output file.
• Lightweight DITA has an <video> element, so there is no need to use an <object> element. The
equivalent of the above <object> example would be:
<video width="320">
<video-poster value="media/video_poster.jpg"/>
<media-controls value="true"/>
<media-source value="media/video.mp4"/>
<media-source value="media/video.ogv"/>
<media-source value="media/video.webm"/>
</video>
Flash animation
Use the <object> DITA element to add Adobe® Flash® animations to your DITA topics. Example:
animation.swf (application/x-shockwave-flash)
(You may have to right-click on the above screenshot and select Play from the Flash popup menu to replay the
animation.)
<p><object data="animation.swf"
type="application/x-shockwave-flash"
width="431" height="123">
<param name="movie" value="animation.swf"
valuetype="ref" type="application/x-shockwave-flash"/>
33
XMLmind XML Editor - DITA Support
Notes:
• The @data, @type, @width and @height attributes are required. The param name=movie child element
having the same value as attribute @data is required too.
• You may add any other <param> child element supported by the Flash object. In the above example, you'll
find menu and quality in addition to required movie.
• If the <object> element has a <desc> child element, then this <desc> element is used to generate
fallback content in case Flash is not supported. If the object element has no <desc> child element, then
a simple fallback content is automatically generated by ditac. This automatic fallback content basically
consists in a link allowing to download the .swf file.
• When ditac is used to generate an XSL-FO based format (PDF, RTF, etc), only the fallback content appears
in the output file.
<p><object data="https://www.youtube.com/embed/C0DPdy98e4c"
width="640" height="360">
<desc><image href="media/youtube_icon.png"/> Watch this <xref format="html"
href="https://youtu.be/C0DPdy98e4c" scope="external">test video</xref> on
YouTube.</desc>
</object></p>
Notes:
• If the <object> element has a <desc> child element, then this <desc> element is used to generate
fallback content in case the media object is not supported. If the object element has no <desc> child
element, then a simple fallback content is automatically generated by ditac. This automatic fallback content
basically consists in a link allowing to download the media file.
• When ditac is used to generate an XSL-FO based format (PDF, RTF, etc), only the fallback content appears
in the output file.
Actions
Unless you add param name="controls" (see above), you'll not be able to play audio or video. Even worse,
without the controls <param>, an audio object is not rendered on screen (that is, it is invisible).
A simple solution for this problem is to insert a <?onclick?> processing-instruction in a DITA element
(typically an inline element such as <xref> or <ph>). The <?onclick?> processing-instruction allows to
specify an number of actions:
34
XMLmind XML Editor - DITA Support
play
Play the associated resource from the beginning. Only applicable to video or audio targets.
pause
Pause playing . Only applicable to video or audio targets.
resume
Resume playing . Only applicable to video or audio targets.
mute
Mute sound . Only applicable to video or audio targets.
unmute
Unmute sound . Only applicable to video or audio targets.
show
Set the visibility property of the target element to visible.
hide
Set the visibility property of the target element to hidden.
The above actions are exactly those supported by EPUB 3's <epub:trigger>.
The <?onclick?> processing-instruction is processed by ditac for the following output formats: XHTML 5,
XHTML 5 Web Help and EPUB 3. It is discarded for any other output format.
When target_id is not specified, it is taken from the @href attribute of the element containing the <?onclick?
> processing-instruction. For example, <xref href="#media/target_audio"><?onclick play()?> is
equivalent to: <xref href="#media/target_audio"><?onclick play(media/target_audio)?>.
Example 1: Say: "Viens Hubble!", which, in French, means: "Come here Hubble!".
No audio. Say: "Viens Hubble!", which, in French, means: "Come here Hubble!".
35
XMLmind XML Editor - DITA Support
<p>Example 2:
<xref href="#media/target_image"><?onclick hide()?>Hide Hubble</xref>.
<xref href="#media/target_image"><?onclick show()?>Show Hubble</xref>.</p>
5. Content inclusion
In the next two sections, we'll learn how to reference in topic A some contents found in a topic B. We'll first
learn how to do it the easy way by using Copy as Reference/Paste. Then, for those who prefer to control
everything to the finest degree, we'll learn how to achieve the same results using a low-level method.
Note
As of XMLmind XML Editor v4.9, it's possible to completely turn off the transclusion of conref
by using menu item Options → Customize Configuration → Conref Transclusion. Note that
this user preference is specified separately for topics and for maps.
Instead of just seeing an empty element having a @conref attribute (that is, the ``pointer''), it is nicer to see the
referenced contents. This process is called transclusion and XMLmind XML Editor can do it for you.
Note
Everything explained here should also work for DITA maps.
Note
The following procedure (Copy as Reference then Paste) is not specific to DITA. The same
procedure could be used to add references to DocBook or XHTML documents. This is why it is
explained in great details in our tutorial.
Procedure
1. Open in XMLmind XML Editor the topic containing the element you want to reference.
36
XMLmind XML Editor - DITA Support
3. If this selected element has no @id attribute, specify one using the Attributes tool.
4. If you want to reference a range of nodes rather a single element, extend the selection (Select → Extend
Selection to Following Sibling, Esc Right-Arrow) to some nodes following this first selected element.
Just make sure that the end of the node range is an element having the same type as the first selected
element and that this end of range element has an @id attribute.
You'll see the name of the element copied as reference displayed in dimmed blue at the bottom right of
XMLmind XML Editor main window.
7. Use Ctrl-U (Edit → Paste Before), Ctrl-V (Edit → Paste) or Ctrl-W (Edit → Paste After) to paste a
reference to the conref source.
8. Sometimes, you'll want to add attributes which are specific to the conref source (typically an @id attribute).
In such case:
You'll see an element having the same name as the conref source but having no content and having a
@conref attribute pointing the conref target.
Related information
• Section 5.2. Content inclusion: an alternative, low-level, method
37
XMLmind XML Editor - DITA Support
Procedure
1. Insert the element (the conref source) you wish to transform into a reference to another element contained
elsewhere (the conref target).
You may use Ctrl-H (Edit → Insert Before), Ctrl-I (Edit → Insert) or Ctrl-J (Edit → Insert After) to do
this.
2. Using the Attributes tool, specify a @conref attribute for the conref source.
Specifying a value “by hand” for the @conref attribute is tedious and error-prone. That's why using this
method rather than the easy one described in Section 5.1. Easy content inclusion is not recommended.
3. If you want to reference a range of nodes rather a single element, use to Attributes tool to also give a
@conrefend attribute to the conref source.
Related information
• Section 5.1. Easy content inclusion
Limitations
• Content inclusion achieved using Copy as Reference/Paste does not perform every possible check on
the validity of the reference. That's why it's possible to use Copy as Reference/Paste successfully in a
document and still get errors when you'll convert this document to other formats.
• Content pushed from one topic to another (the @conaction attribute) is not transcluded by XMLmind
XML Editor.
• Something like <keyword keyref="product-name"/>, where the definition of key product-name
contains <keyword>Thing-O-Matic</keyword> is not transcluded by XMLmind XML Editor.
All these limitations apply only to XMLmind XML Editor as an authoring tool. They do not apply when you'll
use XMLmind XML Editor to convert a DITA document to formats such as HTML, PDF, RTF, etc.
Specificities
If your topics make use of attributes @keyref and/or @conkeyref, it is strongly recommended to check Tools
→ Use as Master Document after opening your map in XMLmind XML Editor. This declaration is persistent
across editing sessions. Therefore this is done once for all.
By doing this, you'll instruct XMLmind XML Editor to use your DITA map as a key space for all the topics
referenced by this map. More information about the master document feature in "XMLmind XML Editor -
Online Help".
6. Preprocessing options
Converting a DITA document to formats such as HTML, PDF, RTF, etc, comprises two steps. First step consists
in preprocessing the DITA document. Second step consists in translating the preprocessed DITA document to
the other format by the means of XSLT stylesheets.
38
XMLmind XML Editor - DITA Support
The XSLT stylesheets are parameterized by using Options → Customize Configuration → Change
Document Conversion Parameters, while the preprocessor is parameterized by using Options → Customize
Configuration → Preprocessing Options. The latter menu item displays a dialog box which is described in
this section.
The top combobox allows to select the group of options to be edited. Each group of options is completely
separated from the other. For example, specifying that an index is to be generated as backmatter for group
"Convert to single-page XHTML" will have an effect when you'll use Map → Convert Document →
Convert to XHTML [one page] and no effect at all when you'll use Map → Convert Document → Convert
to HTML Help or when you'll use Topic → Convert Document → Convert to XHTML [one page] (because
there is a separate "Convert to single-page XHTML" group of options for the Map, BookMap and Topic
configurations).
Default language
Specifies the main language of the document. Examples: en, en-US, fr, fr-CA. This information is
needed in order to sort the index entries. By default, this information is taken from the @xml:lang
attribute of the root element of the topic map (if any, "en" otherwise).
Table of Contents
Specifies whether to automatically generate a Table of Contents and, if a Table of Contents is to
be generated, where to generate it. Frontmatter means at the beginning of the document. Backmatter
means at the end of the document.
This option, like List of Figures, List of Tables, List of Examples and Index, is mainly useful
when working with maps or individual topics. When working with a bookmap, the preferred way
to specify the location, if any, of a Table of Contents is to do it in the bookmap itself. In all cases,
what's specified in the bookmap has priority over the value of this option.
List of Figures
Specifies whether to automatically generate a List of Figures and, if a List of Figures is to be
generated, where to generate it.
39
XMLmind XML Editor - DITA Support
List of Tables
Specifies whether to automatically generate a List of Tables and, if a List of Tables is to be
generated, where to generate it.
List of Examples
Specifies whether to automatically generate a List of Examples and, if a List of Examples is to be
generated, where to generate it.
Index
Specifies whether to automatically generate an Index and, if an Index is to be generated, where to
generate it.
Copy images to
Copy the image files referenced in the topics to specified directory. If specified path is relative, it is
relative to the output directory.
In the above screenshot, "images/*.{png,jpg,jpeg,gif}" means:
• copy to directory images/, relative to the output directory,
• as is (that is, without having to convert the image to another image format),
• all the images referenced in the document source, having a png, jpg, jpeg or gif filename
extension.
• Any image referenced in the document source having a filename extension other than png, jpg,
jpeg or gif (e.g. svg, tif) will be automatically converted to an image having a png, jpg,
jpeg or gif filename extension.
When this field is left empty, the generated document will reference the image files using absolute
URLs. This is harmless for PDF, RTF, etc, files because at the end of the conversion process, such
files will embed a copy of the image files. However, this is rarely what is wanted for HTML-based
formats (XHTML, Java Help, HTML Help, Eclipse Help, EPUB, etc).
Chunk mode
Allowed values are Automatic, Single and None.
Chunk Automatic means: ignore the chunk specification found in the topic map and output a single
chunk for the Print medium; honor the chunk specification for the Screen medium.
Chunk None means ignore the chunk specification found in the topic map and output a single chunk.
As explained above, chunk None is implicit for some formats (PostScript, PDF, RTF, etc).
Both the None and Single values may be used to force the generation of a single output file. Chunk
Single allows to reuse a map designed to output multiple HTML pages in order to generate a single
HTML file or a PDF file.
Target medium
Explicitly specifies the output medium: Screen (XHTML, HTML Help, Eclipse Help, etc) or Print
(PDF, RTF, etc). By default, the output media is guessed using the extension of the output file.
Preprocessor messages
Specifies the level of verbosity of the preprocessor. Allowed values are (from not verbose to very
verbose): None, Information, Verbose, Debug.
Some fields may be ``grayed out'' (disabled). This happens in two cases:
1. The DITA configuration has been customized by the local guru. This automatically prevents the end user
from making any change to the preprocessing options.
2. Changing the values of some options (e.g. Target medium) would break the stock configuration.
40