我有一個看起來像這樣的XML文件(diploma.xml):Firefox不讀取DTD?
<?xml version="1.0" standalone="no" ?>
<!DOCTYPE Diploma SYSTEM "diploma.dtd">
<Diploma>
&students;
&Registrations;
&Courses;
</Diploma>
而且DTD是這樣的:
<!ENTITY students SYSTEM "students.xml">
<!ENTITY Registrations SYSTEM "registrations.xml">
<!ENTITY Courses SYSTEM "courses.xml">
當我嘗試在IE8打開diploma.xml
它正確地包括所有其他XML文件,但在Firefox 3.5中,我收到了關於&students;
未定義的語法錯誤。爲什麼是這樣?
你可以試試diploma.dtd的絕對路徑。 – 2009-09-29 02:13:34
謝謝,但沒有奏效。 – mpen 2009-09-29 02:16:29