Continuing a list
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 8
- Joined: Thu Jul 28, 2022 9:03 am
Continuing a list
Post by digital_nomad »
I have a DITA topic where I have ordered lists which need to be continued. For example, the first list has items 1-10, the next list (after some other tags) should continue from 11.
I have used outputclass=continue, but that doesn't work. I am generating the PDF and webhelp using the default transformation scenarios. Please help
I have used outputclass=continue, but that doesn't work. I am generating the PDF and webhelp using the default transformation scenarios. Please help
-
- Posts: 39
- Joined: Mon Jul 25, 2022 11:18 am
Re: Continuing a list
Post by andrei_pomacu »
Hi,
In the topic, on the ordered list that you want to continue you need to add an outputclass attribute with a specific value. Here is an example:
In order to override the function of the ordered list you need to create a specific CSS style.
Here is what you need to add in your CSS:
To add a style new style into your transformation, it is necessary to override a transformation.
To do that:
Andrei
In the topic, on the ordered list that you want to continue you need to add an outputclass attribute with a specific value. Here is an example:
Code: Select all
<ol>
<li>elem1</li>
<li>elem2</li>
</ol>
<p>P1</p>
<p>P2</p>
<ol outputclass="continued-ol">
<li>elem3</li>
<li>elem4</li>
</ol>
Here is what you need to add in your CSS:
Code: Select all
ol{
counter-reset:cnt;
}
ol[outputclass = 'continued-ol']{
counter-reset:none;
}
li::before{
counter-increment: cnt;
content:counter(cnt)" .";
}
li{
display:block;
}
To do that:
- Press Configure Transformation Scenario.
- Press Edit on both HTML & CSS scenario and WebHelp.
- In Paramters tab at CSS: selection field select the path of your CSS.
- Run the transformation again.
Andrei
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