我在主题标签中使用chunk=" to -content“,如下所示,使用DITA OT 1.8.5插件org.dita4publishers.html2插件生成合并的主题html文件,然后使用生成春克363995000.html输出。
我的首字母文件
<map>
<title>Directory</title>
<topichead chunk="to-content">
<topicmeta class="- map/topicmeta "><navtitle>Details</navtitle></topicmeta>
<topicref class="- map/topicref " href="dita1.xml"/>
<topicref class="- map/topicref " href="dita2.xml"/>
<topicref class="- map/topicref " href="dita3.xml"/></topichead>
</map>如果在根元素中使用chunk="to-content“,则它的不会使用DITA OT 1.8.5插件org.dita4publishers.html2插件生成合并的主题html文件。
<map chunk="to-content">
<title>Directory</title>
<topicref class="- map/topicref " href="dita1.xml"/>
<topicref class="- map/topicref " href="dita2.xml"/>
<topicref class="- map/topicref " href="dita3.xml"/>
</map>为此,我必须做任何xsl更改或插件代码?
请给出解决这一问题的指导方针或建议。
提前谢谢。
发布于 2017-05-29 10:10:33
生成编号块HTML文件的原因是topichead元素不包含(也不应该)包含文件名。当将块属性添加到映射、pubmap或bookmap引用时,文件名将从.ditamap文件的名称中提取。
我已经在这里尝试过您的示例,如果我使用D4P XHTML或它的一个变体,它们都适用于分块内容。所以,您使用的DITA XML没有什么问题,只是旧的HTML 2插件。您可能需要切换到HTML 5插件或XHTML插件。HTML 2插件不再被开发,只为遗留用户所包含。
https://stackoverflow.com/questions/43039235
复制相似问题