I'm having some problems with a custom DTD I'm developing. Specifically, the following errors are bugging me:
Code: Select all
System ID: /Applications/oxygen/frameworks/dita/DITA-OT2.x/plugins/org.mycashflow.xhtml.docs/dtd/faq-question.mod
Main validation file: /Applications/oxygen/frameworks/dita/DITA-OT2.x/plugins/org.mycashflow.xhtml.docs/dtd/faq-question.mod
Engine name: Xerces
Severity: error
Description: The entity "titlealts" was referenced, but not declared.
Start location: 107:1
Length: 38
System ID: /Applications/oxygen/frameworks/dita/DITA-OT2.x/plugins/org.mycashflow.xhtml.docs/dtd/faq-question.mod
Main validation file: /Applications/oxygen/frameworks/dita/DITA-OT2.x/plugins/org.mycashflow.xhtml.docs/dtd/faq-question.mod
Engine name: Xerces
Severity: error
Description: The entity "abstract" was referenced, but not declared.
Start location: 108:1
Length: 37
System ID: /Applications/oxygen/frameworks/dita/DITA-OT2.x/plugins/org.mycashflow.xhtml.docs/dtd/faq-question.mod
Main validation file: /Applications/oxygen/frameworks/dita/DITA-OT2.x/plugins/org.mycashflow.xhtml.docs/dtd/faq-question.mod
Engine name: Xerces
Severity: error
Description: The entity "shortdesc" was referenced, but not declared.
Start location: 109:1
Length: 38
System ID: /Applications/oxygen/frameworks/dita/DITA-OT2.x/plugins/org.mycashflow.xhtml.docs/dtd/faq-question.mod
Main validation file: /Applications/oxygen/frameworks/dita/DITA-OT2.x/plugins/org.mycashflow.xhtml.docs/dtd/faq-question.mod
Engine name: Xerces
Severity: error
Description: The entity "prolog" was referenced, but not declared.
Start location: 110:1
Length: 35
System ID: /Applications/oxygen/frameworks/dita/DITA-OT2.x/plugins/org.mycashflow.xhtml.docs/dtd/faq-question.mod
Main validation file: /Applications/oxygen/frameworks/dita/DITA-OT2.x/plugins/org.mycashflow.xhtml.docs/dtd/faq-question.mod
Engine name: Xerces
Severity: error
Description: The entity "related-links" was referenced, but not declared.
Start location: 112:1
Length: 42
System ID: /Applications/oxygen/frameworks/dita/DITA-OT2.x/plugins/org.mycashflow.xhtml.docs/dtd/faq-question.mod
Main validation file: /Applications/oxygen/frameworks/dita/DITA-OT2.x/plugins/org.mycashflow.xhtml.docs/dtd/faq-question.mod
Engine name: Xerces
Severity: error
Description: The entity "conref-atts" was referenced, but not declared.
Start location: 119:1
Length: 28
System ID: /Applications/oxygen/frameworks/dita/DITA-OT2.x/plugins/org.mycashflow.xhtml.docs/dtd/faq-question.mod
Main validation file: /Applications/oxygen/frameworks/dita/DITA-OT2.x/plugins/org.mycashflow.xhtml.docs/dtd/faq-question.mod
Engine name: Xerces
Severity: error
Description: The entity "select-atts" was referenced, but not declared.
Start location: 120:1
Length: 28
System ID: /Applications/oxygen/frameworks/dita/DITA-OT2.x/plugins/org.mycashflow.xhtml.docs/dtd/faq-question.mod
Main validation file: /Applications/oxygen/frameworks/dita/DITA-OT2.x/plugins/org.mycashflow.xhtml.docs/dtd/faq-question.mod
Engine name: Xerces
Severity: error
Description: The entity "localization-atts" was referenced, but not declared.
Start location: 121:1
Length: 34
System ID: /Applications/oxygen/frameworks/dita/DITA-OT2.x/plugins/org.mycashflow.xhtml.docs/dtd/faq-question.mod
Main validation file: /Applications/oxygen/frameworks/dita/DITA-OT2.x/plugins/org.mycashflow.xhtml.docs/dtd/faq-question.mod
Engine name: Xerces
Severity: fatal
Description: A '(' character or an element type is required in the declaration of element type "faq-question".
Start location: 128:1
Length: 46
Code: Select all
<!ENTITY % faq-question.content
"((%faq-question-statement;),
(%titlealts;)?,
(%abstract; |
%shortdesc;)?,
(%prolog;)?,
(%faq-answer;)?,
(%related-links;)?,
(%faq-question-info-types;)* )"
>
<!ENTITY % faq-question.attributes
"id
ID
#REQUIRED
%conref-atts;
%select-atts;
%localization-atts;
outputclass
CDATA
#IMPLIED"
>
<!ELEMENT faq-question %faq-question.content;>
<!ATTLIST faq-question
%faq-question.attributes;
%arch-atts;
domains
CDATA
"&included-domains;">
However, the concept .dtd and .mod files are included in my specialization's .dtd file, and the code I pasted above is the only part, where these references cause a problem. For instance, later on in the same .mod file there are these references that don't cause the same problem:
Code: Select all
<!ENTITY % faq-answer.content
"((%body.cnt;)*,
(%section; |
%example; |
%conbodydiv;)* )"
>
<!ENTITY % faq-answer.attributes
"%id-atts;
%localization-atts;
base
CDATA
#IMPLIED
%base-attribute-extensions;
outputclass
CDATA
#IMPLIED"
>
<!ELEMENT faq-answer %faq-answer.content;>
<!ATTLIST faq-answer %faq-answer.attributes;>
These errors were not present all the time during the development of this specialization. I managed to transform a test file that was written according to this DTD without any errors. It just seemed to come out of nowhere, as I was editing the XSLT files for my plugin. The XSLT shouldn't have anything to do with this, right?
I'm using Oxygen XML 17.1 and the DITA OT 2.x for transformation. The same errors occurred when using the earlier version of DITA OT.
Does anyone have an idea, what's going on here, because I can't wrap my head around this?