Detect topics that are not in the map, during transformation

Having trouble installing Oxygen? Got a bug to report? Post it all here.
misty
Posts: 16
Joined: Tue Feb 03, 2015 3:23 am

Detect topics that are not in the map, during transformation

Post 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
Radu
Posts: 9057
Joined: Fri Jul 09, 2004 5:18 pm

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

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
misty
Posts: 16
Joined: Tue Feb 03, 2015 3:23 am

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

Post 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?
Radu
Posts: 9057
Joined: Fri Jul 09, 2004 5:18 pm

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

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply