How can ordered list have 4 level lists?
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 29
- Joined: Tue Jun 27, 2017 2:10 pm
How can ordered list have 4 level lists?
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
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
-
- Posts: 13
- Joined: Tue Jan 14, 2003 12:22 pm
Re: How can ordered list have 4 level lists?
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:
Regards,
Bogdan
Bogdan Goreci
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
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>
Bogdan
Bogdan Goreci
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 1
- Joined: Tue Jun 30, 2020 9:13 pm
Re: How can ordered list have 4 level lists?
Hi Bogdan,
I tried this in my topic (concept) but it is appearing as a, b, c, .... instead of 1.1, 1.2, 1.3
See the attched doc.

I tried this in my topic (concept) but it is appearing as a, b, c, .... instead of 1.1, 1.2, 1.3
See the attched doc.
You do not have the required permissions to view the files attached to this post.
-
- Posts: 9438
- Joined: Fri Jul 09, 2004 5:18 pm
Re: How can ordered list have 4 level lists?
Hi,
This forum thread is quite old (last post about 3 years ago). Maybe in such cases you can consider starting a new post.
The visual editing is styled in Oxygen using CSS, if you look in this CSS OXYGEN_INSTALLD_DIR/frameworks/dita/css/core/-topic-body-lists.css, there are CSS selectors which configure the list item counters depending on their level:
but this does not influence the published output as with XML in general there is a separation between content and publishing.
So in what published format (HTML, PDF) do you want to obtain that specific numbering?
Regards,
Radu
This forum thread is quite old (last post about 3 years ago). Maybe in such cases you can consider starting a new post.
The visual editing is styled in Oxygen using CSS, if you look in this CSS OXYGEN_INSTALLD_DIR/frameworks/dita/css/core/-topic-body-lists.css, there are CSS selectors which configure the list item counters depending on their level:
Code: Select all
*[class~="topic/ol"] > *[class~="topic/li"] {
counter-increment: item-count;
}
*[class~="topic/ol"] > *[class~="topic/li"]::marker {
content: counter(item-count, decimal) ". ";
font-weight:bold;
}
*[class~="topic/ol"] > *[class~="topic/li"]
*[class~="topic/ol"] > *[class~="topic/li"]::marker {
content: counter(item-count, lower-alpha) ". ";
}
*[class~="topic/ol"] > *[class~="topic/li"]
*[class~="topic/ol"] > *[class~="topic/li"]
*[class~="topic/ol"] > *[class~="topic/li"]::marker {
content: counter(item-count, lower-roman) ". ";
}
*[class~="topic/ol"] > *[class~="topic/li"]
*[class~="topic/ol"] > *[class~="topic/li"]
*[class~="topic/ol"] > *[class~="topic/li"]
*[class~="topic/ol"] > *[class~="topic/li"]::marker {
content: counter(item-count, decimal) ". ";
}
So in what published format (HTML, PDF) do you want to obtain that specific numbering?
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service