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

Re: XML Schemas: Best Practices

  • From: "Roger L. Costello" <costello@m...>
  • To: xml-dev@l...
  • Date: Fri, 13 Oct 2000 09:22:41 -0400

xml schema address
Paul Spencer wrote:
> I find your interpretations useful, and by publishing them here we 
> get a chance to disagree, which I am about to do:

Excellent!  That's exactly what we need!

> I established a circumstance when I want to re-use a type and 
> cannot re-use an element (both MovingFromAddress and 
> MovingToAddress being of type Address).

I think that we are saying the same thing (although I have obviously not
been very clear).  In your example you have an item - Address.  Should
the schema be designed to declare Address as an element or define it as
a type?  You argue that since Address's structure and content is
intended to be reused by other schemas then it should be defined as a
type.  That is what I meant by:

"... during the lifespan of an item, if it (the item) is to be
associated with multiple semantics then create a type definition."

Now that I relook at what I said I can see that it is not very clear. 
Can you think of a way to express the guideline that makes things
clear?  (Not just Paul, but anyone?)  How would you complete this

"Here are guidelines for when to declare an item as an element versus
when to define it as a type: <fill this in>"



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.