How to skip chapter number for the first topic?
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 26
- Joined: Wed Nov 27, 2019 11:03 am
How to skip chapter number for the first topic?
Hi Team!
Some document standards wants me to place introductory topics before TOC, an these topics have to have no number:
I cannot find how to start third topic, "c_general_info.dita" with 1. My template is based on CSS, I use deep numbering style.
Some document standards wants me to place introductory topics before TOC, an these topics have to have no number:
Code: Select all
<chapter href="32-01_installation_ug/concept/c_annotation.dita" outputclass="before-toc"/>
<chapter href="32-01_installation_ug/concept/c_abbreviations.dita" outputclass="before-toc"/>
<chapter href="32-01_installation_ug/concept/c_general_info.dita">
<topicref href="32-01_installation_ug/concept/c_architecture.dita"/>
<topicref href="32-01_installation_ug/concept/c_environment_structure.dita"/>
</chapter>
-
- Posts: 665
- Joined: Wed Oct 16, 2019 3:47 pm
Re: How to skip chapter number for the first topic?
Post by julien_lacour »
Hello,
You can do this using the following selector in your CSS customization:
Please note that you can debug your customization using the transformation ".merged.html" generated file.
Using this and your browser inspector you can easily identify and modify the selectors to customize the output.
Regards,
Julien
You can do this using the following selector in your CSS customization:
Code: Select all
*[class ~= "map/map"][numbering^='deep'] *[class ~= "topic/topic"][outputclass="before-toc"] + *:not([outputclass="before-toc"]) {
counter-reset: chapter;
}
Using this and your browser inspector you can easily identify and modify the selectors to customize the output.
Regards,
Julien
-
- Posts: 665
- Joined: Wed Oct 16, 2019 3:47 pm
Re: How to skip chapter number for the first topic?
Post by julien_lacour »
Hello,
Could you give us a small sample in which the issue appears?
Like this we can analyze where is the problem and fix it.
Regards,
Julien
Could you give us a small sample in which the issue appears?
Like this we can analyze where is the problem and fix it.
Regards,
Julien
-
- Posts: 26
- Joined: Wed Nov 27, 2019 11:03 am
Re: How to skip chapter number for the first topic?
Hello Julien,
example is attached.
(I hope to remove the chapter number for Appendix with your solution. I don't need it as well)
Sincerely,
Dmitry
example is attached.
(I hope to remove the chapter number for Appendix with your solution. I don't need it as well)
Sincerely,
Dmitry
example.zip
You do not have the required permissions to view the files attached to this post.
-
- Posts: 665
- Joined: Wed Oct 16, 2019 3:47 pm
Re: How to skip chapter number for the first topic?
Post by julien_lacour »
Hello Dmitry,
I've updated your CSS files on my side and tested successfully.
Please check if this works also on your version:
Julien
I've updated your CSS files on my side and tested successfully.
Please check if this works also on your version:
CSS.zip
Regards,Julien
You do not have the required permissions to view the files attached to this post.
-
- Posts: 26
- Joined: Wed Nov 27, 2019 11:03 am
Re: How to skip chapter number for the first topic?
Hello Julien,
no result again... It looks like custom CSS is ignored. Maybe merged.html can help? I have attached it.
Dmitry
no result again... It looks like custom CSS is ignored. Maybe merged.html can help? I have attached it.
b_32-01_installation_ug.zip
Thanks,Dmitry
You do not have the required permissions to view the files attached to this post.
-
- Posts: 665
- Joined: Wed Oct 16, 2019 3:47 pm
Re: How to skip chapter number for the first topic?
Post by julien_lacour »
Hello again,
Could you write us an email at support@oxygenxml.com. I can give you a snapshot of a more recent version of the Oxygen DITA-OT CSS Publishing plugin. Normally it should correct the numbering behavior.
Regards,
Julien
Could you write us an email at support@oxygenxml.com. I can give you a snapshot of a more recent version of the Oxygen DITA-OT CSS Publishing plugin. Normally it should correct the numbering behavior.
Regards,
Julien
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