How to make short desc mandatory for topics?

Post here questions and problems related to editing and publishing DITA content.
ejsumi
Posts: 11
Joined: Wed Dec 18, 2019 9:20 am

How to make short desc mandatory for topics?

Post by ejsumi »

Hi,
We want to make shortdesc element mandatory for concept and task topics? Which is the best way to do it?
I read that we could achieve it using constraints here https://www.oxygenxml.com/dita/stylegui ... atory.html
Can the steps to achieve the same be explained?

Thanks,
Sumi
Radu
Posts: 9057
Joined: Fri Jul 09, 2004 5:18 pm

Re: How to make short desc mandatory for topics?

Post by Radu »

Hi,

One option is to create a DITA DTD constraint vocabulary which imposes the shortdesc as a mandatory element and use that vocabulary when editing your DITA content.
There is a tutorial about DITA specializations by Eliot Kimber:

https://www.xiruss.org/tutorials/dita-specialization/

An alternative is to use a Schematron validation stage:

https://oxygenxmlblog.netlify.com/topic ... rules.html

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply