Page 1 of 1

Detect topics that are not in the map, during transformation

Posted: Mon Feb 16, 2015 5:43 am
by misty
Hi,

During validation, there is an option to "Report links to topics not referenced in DITA maps." I'm looking for a way to run the same check during transformation, and get a warning if a topic is missing from the DITA maps. I can't find a DITA-OT flag / property that corresponds to this setting. I wonder if it is an Oxygen-specific setting, and if so, is there any way I can invoke it during the transform itself? If it's coming from the DITA-OT itself, can you clue me in on how to enable it? I've tried to enable onlytopic.in.map, but that just silently leaves the topic out, producing no warning or even info about it.

Thanks in advance,
Misty

Re: Detect topics that are not in the map, during transforma

Posted: Mon Feb 16, 2015 9:37 am
by Radu
Hi Misty,

That DITA Map Validate and Check for Completeness is Oxygen specific and is not related to the DITA OT publishing in any way.
I added an issue to the DITA OT bugs list based on your suggestion:

https://github.com/dita-ot/dita-ot/issues/1852

Regards,
Radu

Re: Detect topics that are not in the map, during transforma

Posted: Tue Feb 17, 2015 12:40 am
by misty
Thanks Radu, I've followed the issue on GitHub. As a follow-up question, can I somehow run the Oxygen-specific validation using the Oxygen SDK or any other scriptable mechanism? Is there a way to do it at the command line using the JAR files?

Re: Detect topics that are not in the map, during transforma

Posted: Tue Feb 17, 2015 9:17 am
by Radu
Hi,

Unfortunately we do not have a publicly available command line for the DITA Map validate and check for completeness. In my opinion if you know somebody with good XSLT knowledge you can write an XSLT 2.0 stylesheet which can be applied on the DITA Map, recursively load references and report certain problems.

Regards,
Radu