[Framers] Error : Attribute has already been declared for element

cuc tu cuc2u at hotmail.com
Thu Oct 18 09:36:53 PDT 2018


Hi All Framers,


I have a government supplied DTD that I suspect has some errors, but I have limited familiarity with structured authoring.


Here is one of the errors and what I've done to try to understand it:

XML Parser Messages (Document Prolog)
Error at file \production.dtd, line 4038, char 16, Message: Attribute 'applicable' has already been declared for element 'test'


Below I try to find all the related elements and attribute definitions in the DTD. I've indicated where I think the problem is in red font. It looks to me that the "applicable" attribute is declared right in the <test> element and it is also declared through the additional attribute chain: taskatt > applidatt, where applidatt also declares the "applicable" attribute.


Is this truly an error in the DTD that should be corrected or is it typical and should it be ignored?



<!ELEMENT test (title?, %alert;, ((%step;)+ | (proc+)))>
<!ATTLIST test
 %taskatt;
     applicable IDREFS  #IMPLIED
>


<!ENTITY % taskatt " %hcpesd;
   frame            (yes | no )  'yes'
   tocentry         (0 | 3 | 4 | 5 )  '0'
   date-time-stamp  (date | time | date-time )  #IMPLIED
   %applidatt;">

<!ENTITY % applidatt " applicable IDREFS  #IMPLIED
%bodyidatt;">

<!ENTITY % bodyidatt " %changelevel;
                    %idrefs;
                    skilltrk    CDATA  #IMPLIED
                    %secur; ">

<!ENTITY % idrefs " id       ID      #IMPLIED
           idref    IDREFS  #IMPLIED
           assocfig IDREFS  #IMPLIED">

<!ENTITY % secur " security  (uc | fouo | c | s | ts )  #IMPLIED">


Thanks All,


C2


More information about the Framers mailing list