← Prev in month ← Prev in thread
Next in thread → Next in month →

Question on keyref and duplicate element IDs in composite documents

From
Su-Laine Yeo <>
Date
2011-02-23T04:21:02+00:00
ID
Thread
Question on keyref and duplicate element IDs in composite documents
Title: Question on keyref and duplicate element IDs in composite documents 

Hi everyone,

Another keyref question, hooray.

Say you have a composite document called "file.dita":

<dita>

<topic id="topic1">

 <title>Topic 1</title>

 <body>

  <p id="para-01">paragraph 1</p>

 </body>

</topic>

<topic id="topic2">

 <title>Topic 2</title>

 <body>

  <p id="para-01">paragraph 2</p>

 </body>

</topic>

</dita>

and this key definition:

<map>

  <topicref keys="myexample"

    href=""file.dita"
  />

</map>

and a conkeyref using the key:

<p id="localpara" conkeyref = "myexample/para-01"></p>

How should the conkeyref be resolved? I.e. should it be rendered as "paragraph 1" or as "paragraph 2"? AFAIK there is no requirement in DITA for non-topic element IDs to be unique within a file.

Cheers,

Su-Laine

Su-Laine Yeo

Solutions Consultant

JustSystems Canada, Inc.

Office: 1 (778) 327-6356

← Prev in month ← Prev in thread
Next in thread → Next in month →