Chapter and Topic Nesting
Post here questions and problems related to editing and publishing DITA content.
Chapter and Topic Nesting
There is a map/ ditamap as follows :
When I add this as a chapter in bookmap and generate the PDF using css transformation, the output is as follows:
I wanted all the topics nested under the ditamap to be under one chapter "Introduction"
All the topics are set to @is-chapter = true, so all the topics are considered as chapters.
How to change the css to ensure that these topics are not considered as chapters, any thoughts?
- image.png (4.42 KiB) Viewed 195 times
- image.png (10.2 KiB) Viewed 195 times
All the topics are set to @is-chapter = true, so all the topics are considered as chapters.
How to change the css to ensure that these topics are not considered as chapters, any thoughts?
-
- Posts: 393
- Joined: Wed Oct 16, 2019 3:47 pm
Re: Chapter and Topic Nesting
Post by julien_lacour »
Hello,
This is a normal behavior, if you take a look at the DITA Specification for <mapref> element (same as setting format="ditamap") you will find:
Regards,
Julien
This is a normal behavior, if you take a look at the DITA Specification for <mapref> element (same as setting format="ditamap") you will find:
One solution to create an additional level is to add a <topichead> element into the referred map:The hierarchy of the referenced map is merged into the container map at the position of the reference...
Code: Select all
<map>
<topichead navtitle="Introduction">
<topicref href="installation_process_and_deliverables.dita"/>
<topicref href="system_and_bios_requirements.dita"/>
<topicref href="installation_process_and_deliverables.dita"/>
<topicref href="installation_process_and_deliverables.dita"/>
</topichead>
</map>
Julien
-
- Posts: 753
- Joined: Thu May 02, 2019 2:32 pm
Re: Chapter and Topic Nesting
Post by chrispitude »
Building on Julien's suggestion, you can place the in either the submap file:
or in the top-level map file:
In either case (heading in the top-level map or in the submap), you can use a topic file instead of a <topichead> to provide the heading:
This provides an opportunity to provide a chapter abstract, brief overview of the content, etc.
Code: Select all
<topichead>
Code: Select all
<!-- chapter_submap.ditamap -->
<map>
<topichead navtitle="Introduction">
<topicref href="installation_process_and_deliverables.dita"/>
<topicref href="system_and_bios_requirements.dita"/>
<topicref href="installation_process_and_deliverables.dita"/>
<topicref href="installation_process_and_deliverables.dita"/>
</topichead>
</map>
Code: Select all
<!-- top.ditamap -->
<map>
<topichead navtitle="Introduction">
<mapref href="chapter_submap.ditamap"/>
</topichead>
</map>
Code: Select all
<!-- chapter_submap.ditamap -->
<map>
<topicref href="introduction.dita">
<topicref href="installation_process_and_deliverables.dita"/>
<topicref href="system_and_bios_requirements.dita"/>
<topicref href="installation_process_and_deliverables.dita"/>
<topicref href="installation_process_and_deliverables.dita"/>
</topicref>
</map>
Code: Select all
<!-- top.ditamap -->
<map>
<topicref href="introduction.dita">
<mapref href="chapter_submap.ditamap"/>
</topicref>
</map>
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 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