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

  • From: David Megginson <david@m...>
  • To: "XML Development" <xml-dev@i...>
  • Date: Tue, 2 Mar 1999 16:08:51 -0500 (EST)

Kyu Hwang Yeon writes:

 > I am looking for a way to reuse *.dtd files.  For example, I have book.dtd
 > and library.dtd.  Then, I'd like to reuse book.dtd inside library.dtd
 > without rewriting whole library.dtd. (Maybe it is too silly question for
 > people who subscribe this new group)    I wonder it is possible?  Otherwise,
 > should certain conditions be satisfied for that reuse?

Try this:

  <!ELEMENT library (book+)>
  <!ENTITY % book SYSTEM "book.dtd">
  %book;


All the best,


David

-- 
David Megginson                 david@m...
           http://www.megginson.com/

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


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