create more than one tasks in a task topic

catherine
Posts: 25

create more than one tasks in a task topic

Tue Dec 12, 2017 11:57 am

Hi,
Is there any way I can create 2 or 3 tasks in a task topic, like the following:
Task 1
    Step 1
    Step 2
    Step3

Task2
    Step1
    Step2
    Step3

I tried, but failed. I can only create one task in a task topic.
But I see your online help, you can create two tasks in a topic, can you tell me how to achieve this?
https://www.oxygenxml.com/doc/versions/ ... l?hl=image
bogdan
Posts: 13

Re: create more than one tasks in a task topic

Wed Dec 13, 2017 5:16 pm

Hi Catherine,

In the example you provided from our userguide we used a structure based on sections inside a topic, like in the following example:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic>
  <title>Topic</title>
  <body>
    <p>Some content.</p>
    <section>
      <title>First procedure</title>
      <p>Follow this procedure:<ol>
        <li>Step one</li>
        <li>Step two</li>
      </ol></p>
    </section>
    <section>
      <title>Second procedure</title>
      <p>Follow this procedure:<ol>
        <li>First step</li>
        <li>Second step</li>
        <li>Third step</li>
      </ol></p>
    </section>
  </body>
</topic>


If this method does not suit your needs, you could alternatively try one of the following methods:
  • Create task structures inside a task topic, like in the following example:

    Code: Select all

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
    <task id="maintask">
      <title>Main task</title>
      <taskbody>
        <context>
          <p>Some content.</p>
        </context>
        <steps>
          <step>
            <cmd>Step one</cmd>
          </step>
          <step>
            <cmd>Step two</cmd>
          </step>
        </steps>
      </taskbody>
      <task id="secondtask">
        <title>Second task</title>
        <taskbody>
          <steps>
            <step>
              <cmd>Step one</cmd>
            </step>
            <step>
              <cmd>Step two</cmd>
            </step>
          </steps>
        </taskbody>
      </task>
    </task>

  • Write separate tasks, then aggregate them in the final output by using the DITA chunking mechanism.

Best Regards,
Bogdan Goreci

Return to “DITA (Editing and Publishing DITA Content)”

Who is online

Users browsing this forum: No registered users and 0 guests