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

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: I wonder ...

[ Lists Home | Date Index | Thread Index ]
  • From: "Jeffrey E. Sussna" <jes@kuantech.com>
  • To: "'David Megginson'" <david@megginson.com>,"'XML-DEV'" <xml-dev@ic.ac.uk>
  • Date: Tue, 2 Mar 1999 13:46:05 -0800

This works fine, but (at least in IE 5) only for a single level. That is, you can't have another entity reference inside "book.dtd". To me, this significantly limits its usefulness (imagine not allowing a #include inside a file that was #included).

Jeff

-----Original Message-----
From: owner-xml-dev@ic.ac.uk [mailto:owner-xml-dev@ic.ac.uk]On Behalf Of
David Megginson
Sent: Tuesday, March 02, 1999 1:09 PM
To: XML Development
Subject: re: I wonder ...


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@megginson.com
           http://www.megginson.com/

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
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@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)



xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
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@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS