Exemple introductif

ExempleMap (sans hiérarchie)

Modèle UML "Garage tasks and concepts"
1
<?xml version="1.0" encoding="utf-8"?>
2
<!-- tasksAndConceptsSimple.ditamap -->
3
<map title="Garage tasks">
4
  <topicref href="tasks/takinggarbage.xml" type="task"/>
5
  <topicref href="concepts/wheelbarrow.xml" type="concept"/>
6
</map>

ExempleTopic de type "task"

1
<?xml version="1.0" encoding="utf-8"?>
2
<!--  takinggarbage.xml -->
3
<task id="takinggarbage" xml:lang="en-us">
4
  <title>Taking out the garbage</title>
5
  <taskbody>
6
    <steps>
7
      <step><cmd>Find out from the town what day of the week garbage is collected in your neighborhood.</cmd></step>
8
      <step><cmd>The night before collection, place the garbage cans on the curb.</cmd></step>
9
      <step><cmd>After the garbage has been collected, move the cans back into your garage.</cmd></step>
10
    </steps>
11
  </taskbody>
12
  <related-links>
13
    <link href="../concepts/lawnmower.xml" format="dita" type="concept"><linktext>Lawnmower</linktext></link>
14
  </related-links>
15
</task>

ExempleTopic de type "concept"

1
<?xml version="1.0" encoding="utf-8"?>
2
<!--  wheelbarrow.xml -->
3
<concept id="wheelbarrow" xml:lang="en-us">
4
  <title>Wheel barrow</title>
5
  <conbody>
6
    <p>A good wheel barrow will save your back from extensive trauma when you garden.</p>
7
  </conbody>
8
</concept>

ExempleMap (avec hiérarchie)

1
<?xml version="1.0" encoding="utf-8"?>
2
<!-- tasksAndConcepts.ditamap -->
3
<map title="Garage tasks and concepts">
4
<topichead navtitle="Tasks">
5
  <topicref href="tasks/changingtheoil.xml" type="task"/>
6
  <topicref href="tasks/washingthecar.xml" type="task"/>
7
  <topicref href="tasks/spraypainting.xml" type="task"/>
8
  <topicref href="tasks/shovellingsnow.xml" type="task"/>
9
  <topicref href="tasks/takinggarbage.xml" type="task"/>
10
</topichead>
11
<topichead navtitle="Concepts">
12
  <topicref href="concepts/lawnmower.xml" type="concept"/>
13
  <topicref href="concepts/oil.xml" type="concept"/>
14
  <topicref href="concepts/paint.xml" type="concept"/>
15
  <topicref href="concepts/shelving.xml" type="concept"/>
16
  <topicref href="concepts/snowshovel.xml" type="concept"/>
17
  <topicref href="concepts/toolbox.xml" type="concept"/>
18
  <topicref href="concepts/tools.xml" type="concept"/>
19
  <topicref href="concepts/waterhose.xml" type="concept"/>
20
  <topicref href="concepts/wheelbarrow.xml" type="concept"/>
21
  <topicref href="concepts/workbench.xml" type="concept"/>
22
  <topicref href="concepts/wwfluid.xml" type="concept"/>
23
</topichead>
24
</map>
Publication HTML "Garage tasks and concepts" (table des matières)