Check 404 error during publishing

Post here questions and problems related to editing and publishing DITA content.
luodan
Posts: 19
Joined: Wed Aug 24, 2022 7:20 am

Check 404 error during publishing

Post by luodan »

Hi there,
Is there a way to validate the external link during publishing and print the log in the "transformation problems" section?
It seems that Oxygen only checks the xref inside the dita files. If there's a broken external link, it won't be identified.
julien_lacour
Posts: 545
Joined: Wed Oct 16, 2019 3:47 pm

Re: Check 404 error during publishing

Post by julien_lacour »

Hello,

Could you indicate which Oxygen version and which transformation scenario you are using?
Is the broken link intended in your publication or is this the origin of the problem?

Regards,
Julien
luodan
Posts: 19
Joined: Wed Aug 24, 2022 7:20 am

Re: Check 404 error during publishing

Post by luodan »

julien_lacour wrote: Mon Apr 08, 2024 9:26 am Hello,

Could you indicate which Oxygen version and which transformation scenario you are using?
Is the broken link intended in your publication or is this the origin of the problem?

Regards,
Julien
We're using <oXygen/> XML Author 24.1, and the transformation scenario is DITA Map HTML5.
Sometimes, we insert hrefs in the dita files to direct readers to other articles on our doc site or to the third-party site. If these links are changed without notice, the hrefs would become invalid in our docs, that's why we'll need Oxygen to check the validity of the link's.
julien_lacour
Posts: 545
Joined: Wed Oct 16, 2019 3:47 pm

Re: Check 404 error during publishing

Post by julien_lacour »

Hello,

You can check these hrefs by using the Validate and Check for Completeness tool in the DITA Maps Manager view:
image.png
image.png (51.67 KiB) Viewed 348 times
You will obtain errors similar to this one:
Regards,
Julien
luodan
Posts: 19
Joined: Wed Aug 24, 2022 7:20 am

Re: Check 404 error during publishing

Post by luodan »

OK I can try that, but does that mean we cannot check the validity of the links during publishing? If so, we'll have to add the DITA Map completeness check into our SOP for each release.

As for the checking results, there're too many warning that aren't relevant to us. I've tried to deselect some options in the settings window, but it didn't seem to work.
image.png
image.png (124.13 KiB) Viewed 320 times
Post Reply