How can ordered list have 4 level lists?

lisazeng
Posts: 29

How can ordered list have 4 level lists?

Mon Aug 14, 2017 9:14 am

Hi Oxygen Expert,

In my task topic, I want to have below 4-level ordered list.
1.....
a......
1........
a.....
b......
2.......
b

However in the task tpic I can only add one level substeps in steps.
Steps
------step
------substep

How can I have another 2 level ordered substeps in dita?

Thanks!
Lisa
bogdan
Posts: 13

Re: How can ordered list have 4 level lists?

Mon Aug 14, 2017 3:41 pm

Hi Lisa,

Tasks are topic specializations meant to express simple, concise instructions. Probably this is the reason why you can only use steps and substeps.
As possible solutions for your problem:
- a 4-level list seems to be very difficult to follow for any audience. Maybe you can rewrite the information so you can accommodate it in the default 2-level list structure (steps and substeps).
- convert your task to a topic. Then use a combination of ol and li elements to obtain the structure you wish. For example:

Code: Select all

<ol>
  <li>Step 1
    <ol>
      <li>Substep 1.1
        <ol>
          <li>Substep 1.1.1
            <ol>
              <li>Substep 1.1.1.1</li>
             </ol>
           </li>
         </ol>
       </li>
     <li>Substep 1.2</li>
    </ol>
   </li>
   <li>Step 2</li>
</ol>


Regards,
Bogdan

Bogdan Goreci
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
lisazeng
Posts: 29

Re: How can ordered list have 4 level lists?

Wed Aug 23, 2017 4:20 am

Hi Bogdan,

Yes, this help me alot.
I tested it with topic and it works.

thanks!

Lisa

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

Who is online

Users browsing this forum: No registered users and 0 guests