与DITA的关系

Lea*_*yes 0 xml documentation dita

我试图在选择的概念文件之间建立关系.因此,给定三个文档"A","B"和"C",我希望它们各自显示如下内容:

一个 ...

相关概念

  • C

由于某种原因,以下不起作用:

<reltable>
    <relrow>
        <relcell>
            <topicgroup collection-type="family">
                <topicref href="topics/a.dita" type="concept"/>
                <topicref href="topics/b.dita" type="concept"/>
                <topicref href="topics/c.dita" type="concept"/>
            </topicgroup>
        </relcell>
    </relrow>
</reltable>
Run Code Online (Sandbox Code Playgroud)

以下工作,但这肯定是不正确的:

<reltable>
    <relrow>
        <relcell>
            <topicgroup collection-type="family">
                <topicref href="topics/a.dita" type="concept"/>
                <topicref href="topics/b.dita" type="concept"/>
                <topicref href="topics/c.dita" type="concept"/>
            </topicgroup>
        </relcell>
        <relcell>
            <topicgroup collection-type="family">
                <topicref href="topics/a.dita" type="concept"/>
                <topicref href="topics/b.dita" type="concept"/>
                <topicref href="topics/c.dita" type="concept"/>
            </topicgroup>
        </relcell>
    </relrow>
</reltable>
Run Code Online (Sandbox Code Playgroud)

我正在使用XMLMind 的开源DITA转换器.

小智 6

您可以阅读有关reltables的DITA 1.2规范:

http://docs.oasis-open.org/dita/v1.2/os/spec/langref/reltable.html#reltable

规范还包含一个例子.规格说:

在输出时,应将链接添加到同一行但不在同一单元格中的主题.

因此,您的主题需要位于不同的单元格中并位于同一行.