1

我在下面的 topichead 标记中使用 chunk="to-content" 使用 DITA OT 1.8.5 Plugin 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="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 更改或插件代码?

请提供任何指导或建议来解决此问题。

提前致谢。

4

1 回答 1

0

生成编号的块 HTML 文件的原因是因为 topichead 元素不(也不应该)包含文件名。将块属性添加到地图、pubmap 或 bookmap 引用时,文件名取自 .ditamap 文件的名称。

我在这里尝试了您的示例,如果我使用 D4P XHTML 转换或它的变体,它们都可以用于分块内容。因此,您使用的 DITA XML 没有任何问题,只是使用旧的 HTML 2 插件。您可能需要切换到 HTML 5 插件或 XHTML 插件。HTML 2 插件不再开发,仅适用于旧用户。

于 2017-05-29T10:10:33.463 回答