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

Re: Global Complex Types vs. Global Elements

  • To: xml-dev@l...
  • Subject: Re: Global Complex Types vs. Global Elements
  • From: "Rick Jelliffe" <ricko@a...>
  • Date: Mon, 18 Jul 2005 15:48:35 +1000 (EST)
  • Importance: Normal
  • In-reply-to: <200507171510.j6HFAo9Q031442@m...>
  • References: <42D88D3B.6090709@r...> <200507171510.j6HFAo9Q031442@m...>
  • User-agent: SquirrelMail/1.4.2

global complex type
> Hi, all
>
> When I read XMLSPY 2005 User Manual today, I found the following statement
> which really baffles me.
>
> {{//http://www.altova.com/manual2005/XMLSpy/SpyEnterprise/globalelements.htm
>
> A globally declared element can be reused at multiple locations. __?___It
> differs from a globally declared complex type in that its content model
> cannot be modified without also modifying the global element
> itself___?___.
> If you change the content model of an element that references a global
> element, then the content model of the global element will also be
> changed,
> and, with it, the content model of all other elements that reference that
> global element.
>
> }}
>

I think this may be about complex type derivation. If you use a (globally
declared) complex type reference for an element, you can then
extend/restrict it for that element, without affecting any other uses of
the complex type. If you use a (globally declared) element, you can only
change the element's content model, which will effect everything that
references it.

Don't forget that that web page describes a product or the GUI of a product,
not XML Schema per se.

Just guessing...
Rick Jelliffe

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Cast Your Vote

We need your help – Vote for DataDirect XML Products!

  • Best SOA or XML site

Winners and finalists announced at SOA World Conference in November.

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-2007 All Rights Reserved.