Page 1 of 1

How to make short desc mandatory for topics?

Posted: Wed Dec 18, 2019 9:29 am
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

Re: How to make short desc mandatory for topics?

Posted: Thu Dec 19, 2019 3:41 pm
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