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

Re: XML Schema: DOs and DON'Ts

  • From: Jeff Rafter <jeffrafter@e...>
  • To: Kohsuke KAWAGUCHI <kohsukekawaguchi@y...>
  • Date: Mon, 21 May 2001 16:17:35 -0700

attributegroup xml schema
First off let me say thanks for writing up this document-- while I don't
agree with several parts I find it very informative and useful--

> > But my point is that when you use attribute groups you *are* using local
> > attribute declarations. The attribute
>
> Right. But I want readers to understand that <attribute> is allowed only
> under an <attributeGroup>, just like DTD.  People don't need to learn
> another way to do the same thing. One is enough.

One of the biggest issues I am struggling to understand is your rationale
against local attribute declarations.  It seems to be 100% in contrast to
your rationale against global complexTypes.  In global complexTypes the only
additional learning is how to refer to them-- which seems to correspond with
the additional reference to an attributeGroup.  While I am happy to see
attributeGroup survive the simplicity surgery, I think it is at odds with
the basic nature of your document.  As far as "learning another way to do
the same thing" I disagree.  You would be learning less if attributeGroup
were excluded in favor of local attributeDeclarations to begin with.  It is
simply a matter of placement of the attribute declaration-- which is easier
than understanding the attributeGroup syntax.  Granted if you recommended
only using local attribute declarations you would lose some significant
features-- but isn't that the purpose of the document?

IMHO I think that attributeGroup is not on the first level of simplicity--
it is on the second, with global complex types.  Somewhere on the third
level of simplicity/difficulty is type-substitution and inheritence.  The
fourth level is reserved for qualified/unqualified and importing/redifining.

It seems a reformulation of the document based on levels of difficulty
regardless of feature loss might hit your target audience a little better.

All of that said, I do like the document-- keep up the good work.

Thanks,
Jeff Rafter
Defined Systems
http://www.defined.net
XML Development and Developer Web Hosting




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.