好的,经过大量修补后,我发现以下生成了所需的输出:
<!-- chapter.ditamap -->
<topicref href="objects/overview.dita" type="concept" chunk="to-content">
<!-- topics to combine with parent -->
<topicref href="objects/visualising-objects.dita" type="concept"/>
<!-- changing-the-object-size.dita = nested topic -->
<topicref href="changing-the-object-size.dita" type="task" chunk="to-content"/>
</topicref>
或另一个稍微干净的标记(imo):
<!-- chapter.ditamap -->
<topicref href="objects/overview.dita" type="concept" chunk="to-content">
<!-- topics to combine with parent -->
<topicref href="objects/visualising-objects.dita" type="concept"/>
<!-- changing-the-object-size.dita = nested topic -->
<topicgroup>
<topicref href="changing-the-object-size.dita" type="task" chunk="to-content"/>
</topicgroup>
</topicref>
这会生成 2 个 HTML 文件,一个用于“Overview + Visualizing Objects”,另一个用于“Changing the Object Size”,嵌套在“Overview + Visualizing Objects”中。
不幸的是,我无法将组合主题放入其自己的单独地图中:
<!-- chapter.ditamap -->
<!-- objects.ditamap = combined topic -->
<topicref href="objects.ditamap" type="dita">
<!-- changing-the-object-size.dita = nested topic -->
<topicref href="changing-the-object-size.dita" type="task"/>
</topicref>
(有什么想法吗?)
但是,至少我找到了解决方案!