[Home] [By Thread] [By Date] [Recent Entries]

  • From: BillGong <billinfo@s...>
  • To: "xml-dev@l..." <xml-dev@l...>
  • Date: Mon, 08 Oct 2001 03:04:21 -0600

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

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

3.report_person.dtd
<!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">
<P_R>
	<report>
		<title>Title</title>
		<paragraph>Paragraph</paragraph>
	</report>
	
	<person>
		<firstname>Bill</firstname>
		<lastname>Gong</lastname>
	</person>
</P_R>





Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member