DITA DTD constraint for table and figure -


can me create dita dtd constraints?

i want create constraints figure, image , table.
image tag alt tag mandatroy
want figure title mandatory, while table title, desc, , thead @ least 1 entry.

create imageconstraints.mod:

<!entity altreq-constraint    "(topic altreq-c)">  <!entity % image.content                        "((%alt;),                          (%longdescref;)?)"> 

then include shell dtd like

<!entity % altreq-c-def     public "-//foo//elements dita 1.2 required alt constraint//en"    "imageconstraint.mod"> %altreq-c-def; 

and add included-domains entity

<!entity included-domains "...                            &altreq-constraints;"> 

figure , table follow same pattern.

you can't force @ least 1 table header entry rule dtds, need use e.g. schematron.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -