OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: [xml-dev] Global Complex Types vs. Global Elements

[ Lists Home | Date Index | Thread Index ]
  • To: xml-dev@lists.xml.org
  • Subject: Re: [xml-dev] Global Complex Types vs. Global Elements
  • From: "Rick Jelliffe" <ricko@allette.com.au>
  • Date: Mon, 18 Jul 2005 15:48:35 +1000 (EST)
  • Importance: Normal
  • In-reply-to: <200507171510.j6HFAo9Q031442@modelo.allette.com.au>
  • References: <42D88D3B.6090709@rpbourret.com> <200507171510.j6HFAo9Q031442@modelo.allette.com.au>
  • 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


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS