Can a failed Schematron rule prevent saving DITA file?

Post here questions and problems related to editing and publishing DITA content.
ann.jensen
Posts: 295
Joined: Wed Jun 17, 2015 10:19 am

Can a failed Schematron rule prevent saving DITA file?

Post by ann.jensen »

Hi,
Is there any way to block/prevent saving a DITA file if there is a Schematron rule validation is causing an error?
Thanks,
Ann
alex_jitianu
Posts: 1009
Joined: Wed Nov 16, 2005 11:11 am

Re: Can a failed Schematron rule prevent saving DITA file?

Post by alex_jitianu »

Hi Ann,

If you go to Options->Preferences... on page Editor / Save and toy select Validate document before saving, a dialog like the one below will appear when a document is saved and it contains validation errors. The user can still choose to save it, but it is an informed decision and he probably wont save if the company policy is to fix validation problems before saving.

Image

Best regards,
Alex
Attachments
image.png
image.png (8.11 KiB) Viewed 389 times
ann.jensen
Posts: 295
Joined: Wed Jun 17, 2015 10:19 am

Re: Can a failed Schematron rule prevent saving DITA file?

Post by ann.jensen »

Excellent, thanks for that Alex.
Regards,
Ann
Post Reply