[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: 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
syeo@justsystems.com
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]