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

XSD: Document instance syntax goal

  • From: Paul Prescod <papresco@t...>
  • To: "Xml-Dev (E-mail)" <xml-dev@i...>
  • Date: Tue, 26 May 1998 14:58:52 -0400

xsd document
Simon St.Laurent wrote:
> 1. SDDs shall use XML document syntax.

This is a little more vague than I would prefer. Here's a DTD-like schema
in document syntax notation:

<?XML version="1.0"?>
<!ELEMENT ...>
<!ATTLIST ...>

This is an exaggeration, because we aren't likely to do that, but we might
be tempted to use #PCDATA for content models.

The essential point, I think, is that SDDs should use element nesting and
XLinks to describe *all* constraints that should be checkable by the
computer. The only required character data should be descriptions of
things. The only CDATA attributes should be XLinks.

Perhaps for version 2.0 it would make sense to have an optional encoding
that uses #PCDATA content models etc. I don't think that it is so terrible
to require tool vendors to build small parsers inside of their XML
applications. XPointers require that, for instance. But it is better to
use element nesting for version 1.0:

 * Implementation is easier, because the API is predictable (element
events in SAX or element nodes in DOM)
 * Rigorous specification is easier, because we don't need to have BOTH a
DTD and a BNF to describe SDDs
 * A DTD smart editor can guide SDD creation "all of the way down".

 Paul Prescod  - http://itrc.uwaterloo.ca/~papresco

Three things to be wary of: A new kid in his prime
A man who knows the answers, and code that runs first time

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


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.
First Name
Last Name
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.