[Home] [By Thread] [By Date] [Recent Entries]

  • 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

> 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

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member