I have declared the followed at the beginning of an xml file:
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<!DOCTYPE section [
<!ENTITY % XHTML-lat1 PUBLIC "-//W3C//ENTITIES Latin 1//EN//XML"
"XHTML-DTD/XHTML-lat1.ent">
%XHTML-lat1;
<!ENTITY % lesson SYSTEM "../../p1-p2.dtd">
%lesson;
]>
<section xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="iwcpe.xsd">
<title>Course 1</title>
&diagquiz_p1_c1;&studyquiz_p1_c1;&finalquiz_p1_c1;
&diagquiz_p1_c2;&studyquiz_p1_c2;&finalquiz_p1_c2;
</section>
and the following in a dtd (p1-p2.dtd) defining the entities:
<!ENTITY diagquiz_p1_c1 SYSTEM "Part_1/Course_1/diagquiz_c1.xml">
<!ENTITY finalquiz_p1_c1 SYSTEM "Part_1/Course_1/finalquiz_c1.xml">
<!ENTITY studyquiz_p1_c1 SYSTEM "Part_1/Course_1/studyquiz_c1.xml">
<!ENTITY diagquiz_p1_c2 SYSTEM "Part_1/Course_2/diagquiz_c2.xml">
<!ENTITY finalquiz_p1_c2 SYSTEM "Part_1/Course_2/finalquiz_c2.xml">
<!ENTITY studyquiz_p1_c2 SYSTEM "Part_1/Course_2/studyquiz_c2.xml">
Is my understanding correct that when these entities are used in the xml
file, that any entities contained in XHTML-lat1.ent are defined not only for
the main xml file but also for the xml files referenced by the entities?
That is, I should be able to use, for instance, × in both the main xml
file and in diagquiz_c1.xml and they it should be valid in both when XalanJ
is run?
If this is correct, then XalanJ incorrectly emits an error which states to
the effect -- the entity "×" is used but not declared.
Thanks for any input,
Matthew L. Avizinis <mailto:[EMAIL PROTECTED]>
Gleim Publications, Inc.
4201 NW 95th Blvd.
Gainesville, FL 32606
(352)-375-0772 ext. 101
www.gleim.com <http://www.gleim.com>