Auto generating collection from ditamap
Posted: Thu Mar 29, 2012 4:57 pm
Hi,
I am trying to auto-generate a list of topics from the ditamap after a brief introduction paragraph.
I have created 3 files.
<concept id="concept_y1k_rdj_tf">
<title>Introduction</title>
<shortdesc>This is the introduction</shortdesc>
<conbody>
<p>There are 2 types.</p>
</conbody>
</concept>
<concept id="concept_tjs_sdj_tf">
<title>Type 1</title>
<shortdesc>This is type 1</shortdesc>
<conbody>
<p>Concept definition.</p>
</conbody>
</concept>
<concept id="concept_jgf_5dj_tf">
<title>Type 2</title>
<shortdesc>This is type 2.</shortdesc>
<conbody>
<p>Concept definition.</p>
</conbody>
</concept>
I want the generated output to append the title and shortdesc of type 1 and type 2 topics to the introduction as an unordered list.
e.g.
--
Introduction.
This is the introduction
There a 2 types.
[] Type 1
This is type 1
[] Type 2
This is type 2
--
I created a ditamap file and set the collection-type="unordered".
<map>
<title>DITA Topic Map</title>
<topicref href="Intro.dita" collection-type="unordered">
<topicref href="Type1.dita"/>
<topicref href="Type2.dita"/>
</topicref>
</map>
However, the generated HTML or PDF file does not include the appended list?
Any help please?
Simon
I am trying to auto-generate a list of topics from the ditamap after a brief introduction paragraph.
I have created 3 files.
<concept id="concept_y1k_rdj_tf">
<title>Introduction</title>
<shortdesc>This is the introduction</shortdesc>
<conbody>
<p>There are 2 types.</p>
</conbody>
</concept>
<concept id="concept_tjs_sdj_tf">
<title>Type 1</title>
<shortdesc>This is type 1</shortdesc>
<conbody>
<p>Concept definition.</p>
</conbody>
</concept>
<concept id="concept_jgf_5dj_tf">
<title>Type 2</title>
<shortdesc>This is type 2.</shortdesc>
<conbody>
<p>Concept definition.</p>
</conbody>
</concept>
I want the generated output to append the title and shortdesc of type 1 and type 2 topics to the introduction as an unordered list.
e.g.
--
Introduction.
This is the introduction
There a 2 types.
[] Type 1
This is type 1
[] Type 2
This is type 2
--
I created a ditamap file and set the collection-type="unordered".
<map>
<title>DITA Topic Map</title>
<topicref href="Intro.dita" collection-type="unordered">
<topicref href="Type1.dita"/>
<topicref href="Type2.dita"/>
</topicref>
</map>
However, the generated HTML or PDF file does not include the appended list?
Any help please?
Simon