xliff 中的 <context-group> 是什么

What is <context-group> in xliff

我注意到在生成 xliff 文件时,它创建了名为 context-group 的节点。我不确定它们的用途。

     <trans-unit id="edc96753971323c438706da1820e74730a79d1af" datatype="html">
        <source>Your response to this survey has already been recorded. Thank You.</source>
        <context-group purpose="location">
          <context context-type="sourcefile">app\core\forbidden.component.ts</context>
          <context context-type="linenumber">5</context>
        </context-group>
        <note priority="1" from="description">Message for survey already taken</note>
        <note priority="1" from="meaning">Survey Already Taken Page</note>
      </trans-unit>

<context-group> 元素包含与其出现的树中级别相关的上下文元素。因此,可以将上下文设置为 <group> 级别、<trans-unit> 级别或 <alt-trans> 级别。每个 <context-group> 元素都可以命名,允许每个组有不同的用途。当<context-group>被命名时,这些使用可以通过使用XML处理指令来控制。因为 <context-group> 元素可能出现在非常高的级别,所以可以为文件中的所有 <trans-unit> 元素建立默认上下文。这个默认值可以在许多后续级别被覆盖。可选的名称属性可以唯一标识 <file> 元素中的 <context-group>。可选的 crc 属性允许对数据进行验证。可选的 purpose 属性指示此上下文信息的用途;例如"match" 表示上下文信息用于内存查找。

有关详细信息,请参阅:http://docs.oasis-open.org/xliff/v1.2/os/xliff-core.html#context-group