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

Re: XSchema Question 5: Root element issues

  • From: Alain DESEINE <alain@c...>
  • To: xml-dev@i...
  • Date: Wed, 03 Jun 1998 09:14:09 +0200

Re: XSchema Question 5: Root element issues
Simon St.Laurent wrote:
> 
> We'll start the XSchema document syntax discussion at the top, with the root
> element. Hopefully this piece will be a nice appetizer and we can proceed to
> its subelements and attributes, the main course.
> 
> >From the Goals:
> --------------------
> 1. XSchema documents shall use XML document syntax, using element nesting and
> attributes to describe all constraints that may be verified by a processor
> using XSchema.
> --------------------
> 
> In XML documents, per 2.1 of the XML specification:
> --------------------
> There is exactly one element, called the root, or document element, no part of
> which appears in the content of any other element.
> --------------------
> 
> XSchema documents, in order to be XML documents, must have a single root
> element, which may be preceded by the prolog, PIs, and perhaps comments and
> XML 1.0 DTD information.
> 
> An XSchema document might begin:
> <?xml version='1.0' ?>
> <?xml:namespace ns='http://tobedetermined.com' prefix='XSC' ?>
> <XSC:XSchema>
> ...
> </XSC:XSchema>
> 
> Do we want to provide additional information in this root element regarding
> XSchema version, for instance?
> 
> We could add "version='0.1'" or something.
> 
> Given that we're discussing verifying fragments, it's mildly ironic to be
> requiring a root element.  Any concerns on that issue?
> 
> Most important, am I forgetting anything critical?
> 
> Simon St.Laurent
> Dynamic HTML: A Primer / XML: A Primer / Cookies
> 

I aggree with 

<XSC:XSchema>
...
</XSC:XSchema> 

About versionning (I mean version of the document instance, of course)
information (and perharps some other informations), i think we have two
ways :

- Including it as you propose as an attribute of the root element like 

<XSC:XSchema version="1.0">
... 
</XSC:XSchema> 

or,

- adding a new element like this :

<XSC:XSchema>
<XSC:Version>1.0</XSC:Version>
... 
</XSC:XSchema> 

I prefer the first solution, but i can agree with the second one too.

Alain.

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.