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
Post a Comment