I've came across DITA recently and have been fooling around with it to evaluate if it would be applicable for our internal documentation needs. I'm trying to understand(and learn) how to properly structure the document. My initial setup is something like this:
MainMap.ditamap:
<map>
<mapref href="submap-1.ditamap"/>
</map>
SubMap-1.ditamap:
<map>
<topichead navtitle="Topic Title 1">
<topicref href="topic1.dita"/>
<topicref href="topic2.dita"/>
</topichead>
</map>
When I convert this to HTML, I get list of following html:
- toc.html
- mainmap.html
- topic1.html
- topic2.html
toc.html looks like this:
Table of Contents
- Topic Title 1
- topic1
- topic2
So, one thing I don't understand here is that, "Topic Title 1" is also a link and it is linked to mainmap.html which just contains the title, making it totally useless. I would expect(or want :)) that "Topic Title 1" would not be a link, or, if it is, it would link to a page with TOC for the submap.
- Is TOC for submaps possible?
- Should I structure the submaps differently so that the topic title would be more useful? Instead of using topichead, use topicref to a topictitle.dita with summary content and TOC-like list?
- It would be a bit cumbersome to maintain that list. Is there a way to do this automatically?
- Convert main map as multi-html page but submap as single-html page? Is that possible?
BTW, I'm trying out evaluation version XMLMind XML Editor - Professional Edition. Suggestion in editor in terms of better functionality/usability/afford-ability is also welcome. :)
Thank you for you assistance!