Chunk to content and referencing a same topic
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 105
- Joined: Thu Jan 20, 2022 12:36 pm
Chunk to content and referencing a same topic
Hello there!
I stumbled upon a strange situation.
I have a map with a parent topic which chunks a subtopic.
If I reference the topic Introduction above and solely, it seems the rendering displays this topic with the content of the parent.dita topic as well.
I did tests with a generic OT and got the same result. Actually, I would expect to see the first reference of the introduction topic without the content of the parent topic referenced after.
In this screenshot, one sees that when accessing the introduction, I have content retrieved from the topic used below for the chunking
I stumbled upon a strange situation.
I have a map with a parent topic which chunks a subtopic.
Code: Select all
<map>
<title>Mathematics</title>
<topicref href="introduction.dita"/>
<topicref href="parent.dita" chunk="to-content" >
<topicref href="introduction.dita"/>
</topicref>
</map>
I did tests with a generic OT and got the same result. Actually, I would expect to see the first reference of the introduction topic without the content of the parent topic referenced after.
In this screenshot, one sees that when accessing the introduction, I have content retrieved from the topic used below for the chunking
image.png
Attached is a small example of the problem.
chunk-introduction-issue.zip
Any idea or suggestion on this issue?You do not have the required permissions to view the files attached to this post.
------
Gaspard
Gaspard
-
- Posts: 9439
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Chunk to content and referencing a same topic
Hi Gaspard,
I can also reproduce the problem, strange, I added a DITA OT issue for it:
https://github.com/dita-ot/dita-ot/issues/4212
I think nobody has reported it before because it's quite strange to refer both directly to a topic and to have it chunked inside another one.
A possible workaround for this is to use copy-to on the first topic ref:
Regards,
Radu
I can also reproduce the problem, strange, I added a DITA OT issue for it:
https://github.com/dita-ot/dita-ot/issues/4212
I think nobody has reported it before because it's quite strange to refer both directly to a topic and to have it chunked inside another one.
A possible workaround for this is to use copy-to on the first topic ref:
Code: Select all
<topicref href="introduction.dita" copy-to="intro.dita"/>
<topicref href="parent.dita" chunk="to-content" >
<topicref href="introduction.dita"/>
</topicref>
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