我有这个 XML 代码声明一个外部 DTD 实体:
<!DOCTYPE customers [
<!ENTITY % itemCodes SYSTEM "codes.dtd">
%itemCodes;
]>
这只是从codes.dtd调用一些预先编写的代码:
<!ENTITY DCT5Z "Tapan Digital Camera 5 Mpx - zoom">
<!ENTITY SM128 "SmartMedia 128MB Card">
<!-- etc. -->
但我得到这个错误:
This page contains the following errors:
error on line 53 at column 8: PEReference: %itemCodes; not found
为什么会这样?