块=“到内容"的指导原则是: [英] Guide lines for chunk="to-content"

查看:98
本文介绍了块=“到内容"的指导原则是:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在如下所示的topichead标记中使用chunk ="to-content",使用DITA OT 1.8.5插件org.dita4publishers.html2插件生成合并的主题html文件,然后其生成Chunk363995000.html输出 >

I am using chunk="to-content" in topichead tag like below to generate merged topic html file using DITA OT 1.8.5 Plugin org.dita4publishers.html2 plugin then its generating Chunk363995000.html output

我的ditamap文件

My ditamap file

<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 文件

If used chunk="to-content" in root element its not generating merged topic html file using DITA OT 1.8.5 Plugin org.dita4publishers.html2 plugin

<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更改或插件代码吗?

For this i have to do any xsl changes or plugin code?

请提供任何指导或建议以解决此问题.

Please give any guidelines or suggestions to overcome this issue.

预先感谢.

推荐答案

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

The reason the numbered chunk HTML file is generated is because the topichead element does not (and should not) include a filename. When a chunk attribute is added to the map, pubmap or bookmap references, the filename is taken from the name of the .ditamap file.

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

I've tried your examples here and both of them worked for chunking content if I used the D4P XHTML transformation or a variation of it. So there's nothing wrong with the DITA XML you're using, just with the old HTML 2 plugin. You probably need to switch to either the HTML 5 plugin or the XHTML plugin. The HTML 2 plugin is no longer developed and only included for legacy users.

这篇关于块=“到内容"的指导原则是:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆