[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Combining DTDs

  • From: Chris von See <cvonsee@o...>
  • To: xml-dev@i...
  • Date: Fri, 11 Sep 1998 13:17:10 -0500

combining dtds
At 05:21 PM 9/11/98 +0000, Peter Murray-Rust wrote:
>I agree with this. I have written two DTDs in XML (CML and VHG) both of
>which have to interoperate with other *unknown* DTDs. As a simple example,
>a paper in chemical physics requires (at least) xHTML, MathML, CML, RDF and
>DC. It is inconceivable that a generic DTD can be created that has valid
>content models for all conceivable applications in this domain. [It *is*
>conceivable that the J.Chem Phys produces a DTD and it's also highly
>probable that if J. Phys Chem also does it would use a different one.] I
>cannot see how, except in very carefully regulated domains (such as legal,
>patent, regulatory) it will be possible to combine generic DTDs to provide
>a useful mixture. For example, if someone wishes to embed a <price> in a
><molecule> this is a perfectly possible and reasonable thing to do. Why
>should I say they can't?
>

I wonder if a mechanism similar to Java's "import" statement would help
address some of the problems in combining DTDs?  If such a mechanism
existed, you could address a DTD and import only the element definitions
you needed (which, hopefully, would either solve the problem of different
definitions for a given element or make you more aware of name collisions
across multiple DTDs).

For example, you could feed your parser something like:

import DTDname.elementname;
or
import DTDname.m*;
or 
import DTDname.*;

to tell it that it should only recognize and use certain elements from the
named DTD.


Chris

------------------------------------------------------
"Don't *say* things.  What you *are* stands over you the while, and
thunders so that I cannot hear what you say to the contrary."
                  

--- Emerson, "Social Aims"

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/
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...)


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.