create more than one tasks in a task topic

Post here questions and problems related to editing and publishing DITA content.
catherine
Posts: 158
Joined: Fri Nov 10, 2017 8:16 am

create more than one tasks in a task topic

Post by catherine »

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
Joined: Tue Jan 14, 2003 12:22 pm

Re: create more than one tasks in a task topic

Post by bogdan »

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
Post Reply