Discussion:
Error : Attribute has already been declared for element
(too old to reply)
cuc tu
2018-10-18 16:36:53 UTC
Permalink
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
cuc tu
2018-10-18 16:44:31 UTC
Permalink
Hi All,


Had a nice chat with Rick the other day and he helped me understand quite a bit more about the structure and some navigation...

We identified that the read-write rules are involved as removing that from the structured application definition stops the problem I was seeing. We were not sure exactly why it was happening though since the RW file does not declare anything about a 'title' element.


I think I have enough to do what I need to do at the moment.


Thanks all, and especially Rick!

C2

----------------------------------------------------------------------

Message: 1
Date: Mon, 15 Oct 2018 21:02:59 +0000
From: cuc tu <***@hotmail.com>

Hi Rick,


I suspect a table is involved because of the error message...

---------------------



Hi C2,

Is the <first_aid> element being converted to a FrameMaker table?

Rick

Rick Quatro
Carmen Publishing Inc.
***@frameexpert.com
585-729-6746[cid:ce32eb98-daaa-4b08-8e8d-8de70f516dad] NEW!



-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-idslznnv.png
Type: image/png
Size: 773 bytes
Desc: Outlook-idslznnv.png
URL: <Loading Image...>
_______________________________________________

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

Continue reading on narkive:
Loading...