Check for broken web links in DITA topics?

Post here questions and problems related to editing and publishing DITA content.
mhGLEIF
Posts: 43
Joined: Tue Jul 26, 2016 6:31 pm

Check for broken web links in DITA topics?

Post by mhGLEIF »

Hello all!

Is there a functionality to do a simple check for broken Web links in a whole folder of DITA files?

I tried the oxygen web help but couldn't find this (also couldn't log in to comment there but that's another topic)...
Radu
Posts: 9041
Joined: Fri Jul 09, 2004 5:18 pm

Re: Check for broken web links in DITA topics?

Post by Radu »

Hi,

Open the main DITA Map in the DITA Maps Manager view, use the "Validate and check for completeness" action, check the Include Remote Resources checkbox.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
syed
Posts: 76
Joined: Tue Nov 14, 2017 8:34 pm

Re: Check for broken web links in DITA topics?

Post by syed »

Hi,

This is a good feature. Is there a parameter for this feature to be used with Oxygen XML Webhelp (Publishing Engine)?

Thanks...
Syed
Radu
Posts: 9041
Joined: Fri Jul 09, 2004 5:18 pm

Re: Check for broken web links in DITA topics?

Post by Radu »

Hi Syed,

If you want to make some kind of DITA validate and check for completeness on the server side before the publishing starts, we have a special scripting license:

https://www.oxygenxml.com/oxygen_scripting.html

The Oxygen installation folder contains some scripts like "validateCheckDITA.sh" which can be run from a command line.
Recently I set up such a validation on the Oxygen XML Blog project with a gradle script, downloading an Oxygen installation, unpacking it and running the validation script from the command line:

https://github.com/oxygenxml/blog/blob/ ... ild.gradle

Or another option would be first to generate WebHelp and then find some other script to check for broken links directly in the HTML output, maybe you can find a free script doing this).

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
syed
Posts: 76
Joined: Tue Nov 14, 2017 8:34 pm

Re: Check for broken web links in DITA topics?

Post by syed »

Thanks Radu.
Post Reply