Error in specialization .mod file

Post here questions and problems related to editing and publishing DITA content.
nikidharrison
Posts: 1
Joined: Mon Mar 14, 2022 3:15 am

Error in specialization .mod file

Post by nikidharrison »

Hello!
I'm using a set of files that were given to me for a specialization and this is an error I get when I try to validate the .mod file:
Severity: fatal
Description: A '(' character or an element type is required in the declaration of element type "room".

Room is a specialized DITA topic type that was defined in the dtd, mod, and ent files--The error is this line: <!ELEMENT room %room.content;>
I think I am missing something! Please help!

The errors continue on when I am trying to publish, but I am hoping fixing this will fix the rest. Let me know if you need more context.

Nicole

<!-- LONG NAME: Room -->
<!ENTITY % room.content
"((%roomname;),
(%roomdesc;),
(%prolog;)?,
(%roombody;)?,
(%related-links;)?,
(%room-info-types;)*)"
>
<!ENTITY % room.attributes
"id
ID
#REQUIRED
%conref-atts;
%select-atts;
%localization-atts;
outputclass
CDATA
#IMPLIED"
>
<!ELEMENT room %room.content;>
<!ATTLIST room %room.attributes;
%arch-atts;
domains
CDATA
"&included-domains;"
Radu
Posts: 9473
Joined: Fri Jul 09, 2004 5:18 pm

Re: Error in specialization .mod file

Post by Radu »

Hi,

With the way in which DTDs work and expand parameter entities, it's hard to understand what's wrong without looking at the entire set of DTDs.
Maybe you can give us more details via email (support@oxygenxml.com) along with a zip containing all your specialization DTDs.
Looking at this entity:

Code: Select all

<!ENTITY % room.content
"((%roomname;),
(%roomdesc;),
(%;)?,
(%roombody;)?,
(%related-links;)?,
(%room-info-types;)*)"
>
I suspect one of the roomname, roomdesc, prolog, related-links, room-info-types entities is not properly defined somehow. Maybe you can remove them one by one until the validation works, so in this way finding out which of these entity definitions is to blame, then take a closer look at its definition.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply