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

RE: Escher could have drawn it (Re: XML Schema and Entities)

  • From: Dylan Walsh <Dylan.Walsh@K...>
  • To: ht@c..., xml-dev@l...
  • Date: Thu, 21 Jun 2001 14:14:53 +0100

RE: Escher could have drawn it (Re: XML Schema and Entities)
> From:	Henry S. Thompson [SMTP:ht@c...]
> Sent:	Thursday, June 21, 2001 1:36 PM
> To:	vdv@d...
> Cc:	xml-dev@l...
> Subject:	Re: Escher could have drawn it (Re: XML Schema and
> Entities)
> 
>XML Schema does not have a notion of document element at all, so in
that
>sense DOCTYPE is not here to stay, I don't think.

How does this work in practice? I am not very familiar with XML Schema.
Lets say somebodies intended XML structure is as follows:

<?xml version="1.0" ?>
<a>
	<b>
		<c />
	</b>
</a>

Does this mean that it is impossible to write a XML Schema where this
document would *not* be valid:

<?xml version="1.0" ?>
<b>
	<c />
</b>

I presume this is not the case, and that <b> and <c> can defined in such
a way that they can only occur in a certain context. In such a case, you
could deduce that <a> is the root element, even if it is not explicitly
marked as such. However, it may be the case that other elements, <x>,
<y> and <z> could also be defined with the same content model as <a>,
and therefore there are 4 possible root elements for a schema valid
document. Is this the case?


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.