Subheadings to be visible in ToC
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 6
- Joined: Mon Jun 18, 2012 8:57 am
Subheadings to be visible in ToC
I'm making web helps (from old xml-files) and the page has text like this:
Heading 1
text
Heading 2
text
Heading 3
text
These should all be on the same page, so in the same dita-file. But the table of contents should look like this:
Heading 1
Heading 2
Heading 3
Is there any way of doing this without separating the subheadings to other dita-files?
Heading 1
text
Heading 2
text
Heading 3
text
These should all be on the same page, so in the same dita-file. But the table of contents should look like this:
Heading 1
Heading 2
Heading 3
Is there any way of doing this without separating the subheadings to other dita-files?
-
- Posts: 9449
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Subheadings to be visible in ToC
Hi,
In a DITA topic you can add other DITA topics.
So if your DITA topic would have the content like:
then your DITA Map could reference individual topics from it for the TOC like:
That's the only solution I can think of without splitting the headings in different topics.
Regards,
Radu
In a DITA topic you can add other DITA topics.
So if your DITA topic would have the content like:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="topic1">
<title>Heading1</title>
<body>
<p>Topic paragraph</p>
</body>
<topic id="topic2">
<title>Heading2</title>
<body>
<p>Topic paragraph</p>
</body>
</topic>
<topic id="topic3">
<title>Heading3</title>
<body>
<p>Topic paragraph</p>
</body>
</topic>
</topic>
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE map PUBLIC "-//OASIS//DTD DITA Map//EN" "http://docs.oasis-open.org/dita/v1.1/OS/dtd/map.dtd">
<map title="Title">
<topicref href="topic.dita#topic1">
<topicref href="topic.dita#topic2"/>
<topicref href="topic.dita#topic3"/>
</topicref>
</map>
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 6
- Joined: Mon Jun 18, 2012 8:57 am
Re: Subheadings to be visible in ToC
I'm using consepts (not my idea...) so this wouldn't work. I'll have to think about this a bit further...
TechWri
TechWri
Radu wrote:Hi,
In a DITA topic you can add other DITA topics.
So if your DITA topic would have the content like:
then your DITA Map could reference individual topics from it for the TOC like:Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="topic1">
<title>Heading1</title>
<body>
<p>Topic paragraph</p>
</body>
<topic id="topic2">
<title>Heading2</title>
<body>
<p>Topic paragraph</p>
</body>
</topic>
<topic id="topic3">
<title>Heading3</title>
<body>
<p>Topic paragraph</p>
</body>
</topic>
</topic>
That's the only solution I can think of without splitting the headings in different topics.Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE map PUBLIC "-//OASIS//DTD DITA Map//EN" "http://docs.oasis-open.org/dita/v1.1/OS/dtd/map.dtd">
<map title="Title">
<topicref href="topic.dita#topic1">
<topicref href="topic.dita#topic2"/>
<topicref href="topic.dita#topic3"/>
</topicref>
</map>
Regards,
Radu
-
- Posts: 9449
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Subheadings to be visible in ToC
Hi,
If your composite looks like:
Then the same DITA Map content I mentioned in the last post should render a similar result.
Regards,
Radu
If your composite looks like:
Code: Select all
<!DOCTYPE dita PUBLIC "-//OASIS//DTD DITA Composite//EN" "ditabase.dtd">
<dita>
<topic id="topic1">
<title>Heading1</title>
<body>
<p>Topic paragraph</p>
</body>
</topic>
<topic id="topic2">
<title>Heading2</title>
<body>
<p>Topic paragraph</p>
</body>
</topic>
<topic id="topic3">
<title>Heading3</title>
<body>
<p>Topic paragraph</p>
</body>
</topic>
</dita>
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 6
- Joined: Mon Jun 18, 2012 8:57 am
Re: Subheadings to be visible in ToC
Nope, I had concepts (concept id's/conbodys etc.), but I decided to replace them with the topic-structure on this document page and got the thing working. On a web page you can't see the difference between topics and concepts so this will do.
TechWri
TechWri
Radu wrote:Hi,
If your composite looks like:
Then the same DITA Map content I mentioned in the last post should render a similar result.Code: Select all
<!DOCTYPE dita PUBLIC "-//OASIS//DTD DITA Composite//EN" "ditabase.dtd">
<dita>
<topic id="topic1">
<title>Heading1</title>
<body>
<p>Topic paragraph</p>
</body>
</topic>
<topic id="topic2">
<title>Heading2</title>
<body>
<p>Topic paragraph</p>
</body>
</topic>
<topic id="topic3">
<title>Heading3</title>
<body>
<p>Topic paragraph</p>
</body>
</topic>
</dita>
Regards,
Radu
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ 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