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

Re: Roots of the DTD

  • From: John Cowan <cowan@l...>
  • To: XML Dev <xml-dev@i...>
  • Date: Fri, 05 Jun 1998 09:52:43 -0400

pi vs dtd
Ron Bourret wrote:

> A default root might fly.  Certainly a mandatory root is wrong.
> 
> In many ways, the XSchema PI is like DOCTYPE -- it points to a document
> containing the structure of your document.  As Simon suggested, it should
> therefore have a way to specify the root element, similar to the doc-type in the
> DOCTYPE declaration.

I agree.

> Unfortunately, these raises conflicts between DOCTYPE and the XSchema PI, since
> they are two different ways to do the same thing.

I think this is just a special case of XSchema PI vs !DOCTYPE conflict
in general.  After all, a document might insist that it conforms
to a.dtd and b.xschema.xml, where a is not in any way transformable
to b.  With a well-chosen document and a and b, the document might
even pass validation.

> I don't like telling people they can use DOCTYPE or XSchema PIs but not both.  I
> also don't like having to write a long list of conflict resolutions -- it just
> makes XSchemas harder to use.  In both cases, it feels like we are imposing
> requirements not in the XML spec.  Ideas?

I say, give the users plenty of rope, and if they hang themselves,
they hang themselves.  However, I would say that a document conforms
to an XSchema if its actual root is an element defined in the XSchema,
even if the XSchema-PI doesn't declare any root.

-- 
John Cowan	http://www.ccil.org/~cowan		cowan@c...
	You tollerday donsk?  N.  You tolkatiff scowegian?  Nn.
	You spigotty anglease?  Nnn.  You phonio saxo?  Nnnn.
		Clear all so!  'Tis a Jute.... (Finnegans Wake 16.5)

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.