OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xml-dev] Nested DTDs

Hello, there,
I created 3 DTDs in XML Spy as below:
<!ELEMENT report (title,paragraph+)>
<!ELEMENT title (#PCDATA)>
<!ELEMENT paragraph (#PCDATA|emph)*>

<!ELEMENT person (firstname, lastname)>
<!ELEMENT firstname (#PCDATA)>
<!ELEMENT lastname (#PCDATA)>

<!ENTITY % report "report.dtd">
<!ENTITY % person "person.dtd">
<!ELEMENT P_R (%person; , %report;)>

When I create an XML file trying to use P_R in
report_person.dtd, it failed. Can anyone here tell
me the reason? Very thanks.

ps, the xml file is like following:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE P_R SYSTEM "G:\Fall 2001\Thesis\Source Center\Tips\DTD\report_person.dtd">