我正在使用chunk =" to-content"在下面的topichead标签中使用DITA OT 1.8.5插件org.dita4publishers.html2插件生成合并主题html文件,然后生成Chunk363995000.html输出
我的ditamap文件
<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 =&#34; to-content&#34;在根元素中使用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更改或插件代码?
请提供任何指导或建议以克服此问题。
先谢谢。
答案 0 :(得分:0)
生成编号的块HTML文件的原因是因为topichead元素没有(并且不应该)包含文件名。将chunk属性添加到map,pubmap或bookmap引用时,文件名取自.ditamap文件的名称。
我已经在这里尝试过你的例子,如果我使用D4P XHTML转换或其变体,他们都会为分块内容工作。因此,您使用的DITA XML没有任何问题,只需使用旧的HTML 2插件即可。您可能需要切换到HTML 5插件或XHTML插件。 HTML 2插件不再开发,仅包含在旧版用户中。