Cross-references from a resource-only map reference are crawled

Post here questions and problems related to editing and publishing DITA content.
antonyterrence
Posts: 41
Joined: Thu Jun 02, 2022 1:39 pm

Cross-references from a resource-only map reference are crawled

Post by antonyterrence »

test_resource_only_attribute.zip
(2.77 KiB) Downloaded 64 times
I have a dita map that references another map, which is set as a resource-only map. However, the resource-only map references a topic which includes a cross-reference to a topic. The responsive webhelp crawls the cross-reference and generates an html file for the file. Won't the resource-only attribute work for cross-references?
chrispitude
Posts: 907
Joined: Thu May 02, 2019 2:32 pm

Re: Cross-references from a resource-only map reference are crawled

Post by chrispitude »

Hi Antony,

I wonder if this is a variant of this DITA-OT issue:

#3940: processing-role="resource-only" does not cascade downward in map
antonyterrence
Posts: 41
Joined: Thu Jun 02, 2022 1:39 pm

Re: Cross-references from a resource-only map reference are crawled

Post by antonyterrence »

I think it is. Thank you for sharing the link, Chris.
chrispitude
Posts: 907
Joined: Thu May 02, 2019 2:32 pm

Re: Cross-references from a resource-only map reference are crawled

Post by chrispitude »

Sure! If you have a Github account, it might be worth adding a note that this affects you too (and perhaps attaching your simple testcase so any subsequent fix can be tested against it).
antonyterrence
Posts: 41
Joined: Thu Jun 02, 2022 1:39 pm

Re: Cross-references from a resource-only map reference are crawled

Post by antonyterrence »

I have added a note to the issue. Thank you.
marius
Posts: 39
Joined: Thu Mar 05, 2009 11:44 am

Re: Cross-references from a resource-only map reference are crawled

Post by marius »

Hi,
As a workaround you can tweak one of the following transformation parameters: onlytopic.in.map or link-crawl, to see if one of them works in your case.
I've checked using your samples and the cross-referenced topic isn’t generated anymore if you modify the default value for one of the two parameters.
Best regards,
Marius
Marius Ciolacu
Syncro Soft / Oxygen XML
antonyterrence
Posts: 41
Joined: Thu Jun 02, 2022 1:39 pm

Re: Cross-references from a resource-only map reference are crawled

Post by antonyterrence »

I am ware of the two parameters. My team won't be comfortable using the params to stop crawling links since certain amount crawling is fine. But if we specify certain files as resource-only, crawling should not happen on such files.
Post Reply