Topics included in a reltable but not in a map are processed and appear in the webhelp search
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 41
- Joined: Thu Jun 02, 2022 1:39 pm
Topics included in a reltable but not in a map are processed and appear in the webhelp search
Post by antonyterrence »
We have a map that includes a relationship table. The relationship table seems includes references to a lot of topics that are not included in the main map. And some of such topics include xrefs to other topics that are not part of the main map. The webhelp transform processes all links and creates html files for them in the output. Also, such topics appear in the search. We don't want the orphaned topics to appear in the search nor do we want them in the output.
I am not sure we can turn on link-crawl and onlytopic-in-map params since we are not sure of the impact on the existing links (right-now, the content kind of includes spaghetti links).
Is there an option to prevent dita-ot from processing/creating html files for topics in the reltable and force it to process only the topicrefs found in the map? Not sure why topics from reltable are processed into html files.
A sample map is attached.
I am not sure we can turn on link-crawl and onlytopic-in-map params since we are not sure of the impact on the existing links (right-now, the content kind of includes spaghetti links).
Is there an option to prevent dita-ot from processing/creating html files for topics in the reltable and force it to process only the topicrefs found in the map? Not sure why topics from reltable are processed into html files.
A sample map is attached.
test_reltable.zip
You do not have the required permissions to view the files attached to this post.
Last edited by antonyterrence on Fri Jul 08, 2022 9:03 am, edited 2 times in total.
-
- Posts: 9438
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Topics included in a reltable but not in a map are processed and appears in the webhelp search
Hi Antony,
Right now, if you do not want the topics referenced in a reltable to be processed, you need to set on them the same profiling attributes that you set on the same topicrefs in the main DITA Map. Or refer to them using "keyref" if you filter out the key definition when publishing.
There was this issue I added on the DITA OT but it was not fixed and was closed as stale at some point, I will re-open it to show that people are still interested in this:
https://github.com/dita-ot/dita-ot/issues/2943
Regards,
Radu
Right now, if you do not want the topics referenced in a reltable to be processed, you need to set on them the same profiling attributes that you set on the same topicrefs in the main DITA Map. Or refer to them using "keyref" if you filter out the key definition when publishing.
There was this issue I added on the DITA OT but it was not fixed and was closed as stale at some point, I will re-open it to show that people are still interested in this:
https://github.com/dita-ot/dita-ot/issues/2943
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 41
- Joined: Thu Jun 02, 2022 1:39 pm
Re: Topics included in a reltable but not in a map are processed and appears in the webhelp search
Post by antonyterrence »
It's not just about topics that are filtered out. Let's say Topic A is referenced from map and it is added to the reltable. In reltable, Topic A links to Topic B which is not included in the map. HTML transforms processe Topic B as well and index it as well. The specification says reltable is used only for linking purposes and I am confused as to why all topics specified in reltable are processed to html files. Thank you for reminding me of the issue.
Last edited by antonyterrence on Fri Jul 08, 2022 8:58 am, edited 2 times in total.
-
- Posts: 9438
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Topics included in a reltable but not in a map are processed and appear in the webhelp search
Hi Antony,
I understand, about this remark:
Regards,
Radu
I understand, about this remark:
So why is that link between topic A and topic B present in the reltable? Was it added by mistake? To avoid indexing that topicB.html (as it gets copied by the publishing engine to the output folder), the link either needs to be completely removed, or you need to add a profiling condition on the topicref which points to topic B in the reltable or you need to always use keyrefs in the reltable.In reltable, Topic A links to Topic B which is not included in the map.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 41
- Joined: Thu Jun 02, 2022 1:39 pm
Re: Topics included in a reltable but not in a map are processed and appear in the webhelp search
Post by antonyterrence »
Topics are added by mistake. And some of them lead to spaghetti links.
-
- Posts: 9438
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Topics included in a reltable but not in a map are processed and appear in the webhelp search
Hi Antony,
Right now in 24.1 if you take a DITA Map in the DITA Maps Manager like this and use "Validate and check for completeness":
there is a setting there named "Report links to topics not referenced in the DITA Map". But unfortunately it does not report these two rel-links.
For Oxygen 25 I made an improvement and the same case will generate two validation errors:
So at least in Oxygen 25 the "Validate and check for completeness" will help more in this case.
Regards,
Radu
Right now in 24.1 if you take a DITA Map in the DITA Maps Manager like this and use "Validate and check for completeness":
Code: Select all
<map>
<title>Test Reltable</title>
<reltable>
<relheader>
<relcolspec/>
<relcolspec/>
</relheader>
<relrow>
<relcell>
<topicref href="abc.dita"/>
</relcell>
<relcell>
<topicref href="def.dita"/>
</relcell>
</relrow>
</reltable>
</map>
For Oxygen 25 I made an improvement and the same case will generate two validation errors:
Code: Select all
Description: Topic referenced in relationship table but not in DITA map: "abc.dita".
Description: Topic referenced in relationship table but not in DITA map: "def.dita".
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 41
- Joined: Thu Jun 02, 2022 1:39 pm
Re: Topics included in a reltable but not in a map are processed and appear in the webhelp search
Post by antonyterrence »
Thank you, Radu. Yes, that will help writers who validate the maps diligently. Is it possible to do such validation via commandline?
-
- Posts: 9438
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Topics included in a reltable but not in a map are processed and appear in the webhelp search
Hi Antony,
This is possible with a special scripting commercial license:
https://www.oxygenxml.com/doc/versions/ ... eness.html
Regards,
Radu
This is possible with a special scripting commercial license:
https://www.oxygenxml.com/doc/versions/ ... eness.html
Regards,
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