Cross-referencing topics outside a map
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 30
- Joined: Sat May 04, 2019 5:55 pm
Cross-referencing topics outside a map
Post by antoterrence »
Hi,
We have a couple of maps that include topics which in turn contain cross-references to topics that are not part of the maps.
Is it a good practice to cross-reference topics that are not part of a map? If done, such cross-references will work only in HTML output and not PDF.
Can you guide us on a good strategy to cross-reference topics in DITA?
Regards,
Antony Terrence
We have a couple of maps that include topics which in turn contain cross-references to topics that are not part of the maps.
Is it a good practice to cross-reference topics that are not part of a map? If done, such cross-references will work only in HTML output and not PDF.
Can you guide us on a good strategy to cross-reference topics in DITA?
Regards,
Antony Terrence
-
- Posts: 9451
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Cross-referencing topics outside a map
Dear Antony,
As you also found out, using such cross references results in broken links in the PDF output. So links to topics not referenced in the DITA Map is not a good idea.
In the Oxygen DITA Maps Manager view there is a "Validate and Check for Completeness" and one of the checkboxes there is "Report links to topics not referenced in the DITA Map". You should use that to avoid having such problems in your DITA project.
Regards,
Radu
As you also found out, using such cross references results in broken links in the PDF output. So links to topics not referenced in the DITA Map is not a good idea.
In the Oxygen DITA Maps Manager view there is a "Validate and Check for Completeness" and one of the checkboxes there is "Report links to topics not referenced in the DITA Map". You should use that to avoid having such problems in your DITA project.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 30
- Joined: Sat May 04, 2019 5:55 pm
Re: Cross-referencing topics outside a map
Post by antoterrence »
Thank you, Radu. The topic that contains cross references is being reused. So in one map, it works fine. In another, the writer does not want the links to appear in the output except the xref text. Is there a way to disable link (blue line) from the output without removing the xref element? Thanks for your help.
-
- Posts: 9451
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Cross-referencing topics outside a map
Hi Antony,
I would do this using key references.
So in the reusable component topic I would have the link something like this:
and then in the DITA Map where I want it as link, I would define the key like this:
then in the other DITA Map where I want plain text I would define it like this:
I tested this with the DITA OT 3.x bundled with Oxygen 21.1, it may not work with older DITA OTs.
Regards,
Radu
I would do this using key references.
So in the reusable component topic I would have the link something like this:
Code: Select all
<ph keyref="linkKey"/>
Code: Select all
<keydef keys="linkKey" href="tasks/pruning.dita"/>
Code: Select all
<keydef keys="linkKey">
<topicmeta>
<keywords>
<keyword>
LINK TEXT HERE
</keyword>
</keywords>
</topicmeta>
</keydef>
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 30
- Joined: Sat May 04, 2019 5:55 pm
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