Cross-reference to the same topic used in TWO DITAMAPs
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 8
- Joined: Thu Apr 14, 2022 8:37 am
Cross-reference to the same topic used in TWO DITAMAPs
Post by girishkanmas »
OUTPUT FORMAT: XSL-FO PDF
I have reused a topic in two different DIATAMAPs in a document.
I would like to add two cross-references to the reused topic so that the respective link navigates to the intended section of the DITAMAP in the PDF.
Any help?
I have reused a topic in two different DIATAMAPs in a document.
I would like to add two cross-references to the reused topic so that the respective link navigates to the intended section of the DITAMAP in the PDF.
Any help?
-
- Posts: 667
- Joined: Wed Oct 16, 2019 3:47 pm
Re: Cross-reference to the same topic used in TWO DITAMAPs
Post by julien_lacour »
Hello,
Are you publishing these ditamap separately or are they referenced in a parent one?
Could you give us more details or even a small sample showing the problem (only with the structure, the content can be random)?
Regards,
Julien
Are you publishing these ditamap separately or are they referenced in a parent one?
Could you give us more details or even a small sample showing the problem (only with the structure, the content can be random)?
Regards,
Julien
-
- Posts: 8
- Joined: Thu Apr 14, 2022 8:37 am
Re: Cross-reference to the same topic used in TWO DITAMAPs
Post by girishkanmas »
I am using both the DITAMAPs in the same BookMap.
-
- Posts: 667
- Joined: Wed Oct 16, 2019 3:47 pm
Re: Cross-reference to the same topic used in TWO DITAMAPs
Post by julien_lacour »
Hello,
A solution could be to duplicate the topic and in the duplicated topic refer the content from the original topic. Each topic will be referenced in its ditamap.
Then one link will lead to the original topic while the other will lead to the duplicated one. I added a sample to make it clearer.
Julien
A solution could be to duplicate the topic and in the duplicated topic refer the content from the original topic. Each topic will be referenced in its ditamap.
Then one link will lead to the original topic while the other will lead to the duplicated one. I added a sample to make it clearer.
conref.zip
Regards,Julien
You do not have the required permissions to view the files attached to this post.
-
- Posts: 8
- Joined: Thu Apr 14, 2022 8:37 am
Re: Cross-reference to the same topic used in TWO DITAMAPs
Post by girishkanmas »
Thank you for your solution, Julien.
Last edited by girishkanmas on Mon Jul 31, 2023 11:47 am, edited 1 time in total.
-
- Posts: 8
- Joined: Thu Apr 14, 2022 8:37 am
Re: Cross-reference to the same topic used in TWO DITAMAPs
Post by girishkanmas »
Is there way we can specify the DITAMAP context in the <xref> tag for a topic reused in the same BookMap?
-
- Posts: 667
- Joined: Wed Oct 16, 2019 3:47 pm
Re: Cross-reference to the same topic used in TWO DITAMAPs
Post by julien_lacour »
Hello,
There is a possibility using @keyscope attribute on the ditamaps references in the bookmap, then using @keyref in <xref> elements.
The problem is that, to make this solution works, the topics must have a slightly different content (for example a key with the product name - the structure is the same but the displayed text differs). If not the links will lead to the first target (as they are just references to the same topic).
Regards,
Julien
There is a possibility using @keyscope attribute on the ditamaps references in the bookmap, then using @keyref in <xref> elements.
The problem is that, to make this solution works, the topics must have a slightly different content (for example a key with the product name - the structure is the same but the displayed text differs). If not the links will lead to the first target (as they are just references to the same topic).
Regards,
Julien
-
- Posts: 8
- Joined: Thu Apr 14, 2022 8:37 am
Re: Cross-reference to the same topic used in TWO DITAMAPs
Post by girishkanmas »
Hi Julien,
I agree with you. When using DITAMAP level keyscope, TopicRef-level keys, and then Xref with keyref (scope_name.key_name), it still directs to the first instance of the topic. Therefore, I followed your first suggestion and created a new topic using Conref.
Thank you for your help.
Best regards,
Girish
I agree with you. When using DITAMAP level keyscope, TopicRef-level keys, and then Xref with keyref (scope_name.key_name), it still directs to the first instance of the topic. Therefore, I followed your first suggestion and created a new topic using Conref.
Thank you for your help.
Best regards,
Girish
Last edited by girishkanmas on Tue Aug 08, 2023 9:18 am, edited 1 time in total.
-
- Posts: 922
- Joined: Thu May 02, 2019 2:32 pm
Re: Cross-reference to the same topic used in TWO DITAMAPs
Post by chrispitude »
Hi Girish,
The keyscoped topics should have become unique if there was some kind of key reference in the topic. Here is a testcase that demonstrates the duplication:
Here is more information about what causes the DITA-OT to uniquify topics:
#4173: Why does a transformation sometimes create duplicate topic files?
- Chris
The keyscoped topics should have become unique if there was some kind of key reference in the topic. Here is a testcase that demonstrates the duplication:
oxygen_two_topic_instances.zip
Here is more information about what causes the DITA-OT to uniquify topics:
#4173: Why does a transformation sometimes create duplicate topic files?
- Chris
You do not have the required permissions to view the files attached to this post.
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