cuc tu
2018-10-18 16:36:53 UTC
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
_______________________________________________
This message is from the Framers mailing list
Send messages to ***@lists.frameusers.com
Visit the list's homepage at http://www.frameusers.com
Archives located at http://www.mail-archive.com/framers%40lists.frameusers.com/
Subscribe and unsubscribe at http://lists.frameusers.com/listinfo.cgi/framers-frameusers.com
Send administrative questions to ***@frameusers.com
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
_______________________________________________
This message is from the Framers mailing list
Send messages to ***@lists.frameusers.com
Visit the list's homepage at http://www.frameusers.com
Archives located at http://www.mail-archive.com/framers%40lists.frameusers.com/
Subscribe and unsubscribe at http://lists.frameusers.com/listinfo.cgi/framers-frameusers.com
Send administrative questions to ***@frameusers.com