在 DITA-ot 中使用 conkeyrefs

Using conkeyrefs in DITA-ot

我们有很多客户,客户特定文档中的几组词具有不同的后缀。有时我们需要更新客户文档中包含的词语。为了方便起见,单词存储在如下表格中:

<row>
   <entry><ph id="1" customer="A">szolgáltatáshely</ph></entry>
   <entry><ph id="2" customer="A B C D E">szolgáltatási hely</ph></entry>
   <entry><ph id="3" customer="F">felhasználási hely</ph></entry>
</row>

该解决方案有效,但在验证和生成 PDF 期间我们收到大量警告和错误。有没有更好的方法可以消除这些警告?

警告消息:在同一主题上下文中找到 ID 为 "some_id" 的重复元素。

我们正在使用 oXygen 14.1

通常当您在同一个 DITA 主题中有两个具有相同 ID 的元素时,就会出现像您这样的问题,例如:

    <row>
        <entry><ph id="1" audience="A">test1</ph><ph id="1" audience="B">test2</ph></entry>
    </row>

即使您的分析将删除其中一个元素和发布作品,根据 DITA 规范,在同一主题中具有相同 ID 的两个元素是非法的,因此 Oxygen 和发布在报告中都是正确的问题。

DITA 1.3 规格:

https://www.oxygenxml.com/dita/1.3/specs/archSpec/base/id.html

  The DITA specification requires that all IDs be unique within the context of a topic.

如果您想要根据 DITA 标准获得有效内容,您可以尝试重写您的内容,例如:

    <row>
        <entry><ph id="1"><ph audience="A">test1</ph><ph audience="B">test2</ph></ph></entry>
    </row>