O'Reilly logo

DITA for Print by Leigh W. White

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Create links to steps within the same task

Create links from one step to another within the same task that include a dynamic step number.

While it’s a best practice to write tasks so they flow without interruption from the first step to the last, sometimes you need to create a looping task. When you need to do this, it’s best to create a cross-reference so that if the steps are re-numbered, the step reference changes automatically.

  1. Within a task, add an id attribute and value to the step you want to create the reference to.

    The id should be on the step element, and it can be anything you want. It only needs to be unique within the current topic, so you can keep it short and simple.

    <task id="id1234567890">
       ...
       <step id="selfpay1"> <cmd>Complete ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required