Scoped keys in nested topics pulled in by conref?

20 views
Skip to first unread message

Tino Kraft

unread,
Dec 5, 2018, 9:20:48 AM12/5/18
to DITA-OT Users
Hi,

does anyone know if it's possible to use scoped keys (defined in root map) in a nested topic that's pulled into another topic with conref. Like so:

Map

<map>

 <topicref href="topic-a.dita" keyscope="apple">
    <keydef keys="brand-name">
      <topicmeta>
        <keywords>
          <keyword>apple</keyword>
        </keywords>
      </topicmeta>
    </keydef>
 </topicref>
 
</map>

topic-a.dita:

<task id="topic-a">
    <title>Topic A</title>
    <taskbody>
        <steps id="steps_dvj_htq_wfb">
            <step>
                <cmd>This is the <ph keyref="brand-name"/></cmd>
            </step>
        </steps>
    </taskbody>
    <task id="topic-b-ref" conref="topic-b.dita">
      <title/>
    </task>
</task>

topic-b.dita:

<task id="topic-b">
    <title>Topic B</title>
    <taskbody>
        <steps id="steps_dvj_htq_wfb">
            <step>
                <cmd>Here is the <ph keyref="brand-name"/></cmd>
            </step>
        </steps>
    </taskbody>
</task>

When I transform the map into XHTML, the keyref is resolved to "apple" in Topic A but not in Topic B when it's pulled into A. Is this supposed to work or am I doing something wrong? Using DITA-OT 3.2.


Reply all
Reply to author
Forward
0 new messages