Re: Adding "next topic", "previous topic" throughout an entire map? #HTML #linking


Chris Papademetrious
 

Hi Lief,

Indeed, I noticed that Oxygen's WebHelp seems to implement this in the desired way!

This morning I could not reproduce what I posted earlier. I suspect those results were for multiple collection sequences in the map, not just at the map level.

So I reran with collection-type="sequence" applied *only* at the map level. I found that the behavior differs between DITA-OT 3.4 and Oxygen's DITA-OT:

DITA-OT 3.4:

<map collection-type="sequence">
  <title>This Book</title>
  <topicref href="t1/topic0.dita">  >---+
    <topicref href="t1/topic1.dita"/>   |
    <topicref href="t1/topic2.dita"/>   |
    <topicref href="t1/topic3.dita"/>   |
  </topicref>                           |
                                        |
  <topicref href="t2/topic0.dita">  <---+  >--+
    <topicref href="t2/topic1.dita"/>         |
    <topicref href="t2/topic2.dita"/>         |
    <topicref href="t2/topic3.dita"/>         |
  </topicref>                                 |
                                              |
  <topicref href="t3/topic0.dita">  <---------+
    <topicref href="t3/topic1.dita"/>
    <topicref href="t3/topic2.dita"/>   
    <topicref href="t3/topic3.dita"/>
  </topicref>
</map>


Oxygen's DITA-OT:

<map collection-type="sequence">
  <title>This Book</title>
  <topicref href="t1/topic0.dita">  >-------+
    <topicref href="t1/topic1.dita"/>  <----+
    <topicref href="t1/topic2.dita"/>
    <topicref href="t1/topic3.dita"/>
  </topicref>
  <topicref href="t2/topic0.dita">  >-------+
    <topicref href="t2/topic1.dita"/>  <----+
    <topicref href="t2/topic2.dita"/>
    <topicref href="t2/topic3.dita"/>
  </topicref>
  <topicref href="t3/topic0.dita">  >-------+
    <topicref href="t3/topic1.dita"/>  <----+
    <topicref href="t3/topic2.dita"/>
    <topicref href="t3/topic3.dita"/>
  </topicref>
</map>


Both results used plain 'html5' transforms with fresh installations and no plugins installed. I'm not quite sure what to make of this difference. Which is correct and which is incorrect?

(Neither seems "correct" to me, because both provide the user with a "Next topic" link that skips information.)

 - Chris

Join main@dita-users.groups.io to automatically receive all group messages.