Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Visibility modifiers for named Schema components -- Schema 1.1 feature?

From: "David Ezell" <David_E3@--------.--->
To: "Webb Roberts" <webb.roberts@----.------.--->, "Mark Goodhand" <mrg@------------.--->
Date: 9/8/2006 7:06:00 AM
Both of the following comments seem to have merit, but it's either
unclear how to implement them or why they'd be important in XML as
opposed to OO.

N.B. when I joined the schema WG I was an OO programmer, and it was not
at all clear to me what was good for OO wouldn't be good for XML.  The
reasons this logic really doesn't hold completely are subtle, not
completely self-evident, and therefore unsatisfying.  I offer the
following comments realizing that you'll have to buy in to this idea
before you see my answer as anything other than sandbagging.

Mark Goodhand wrote:
> I've long found it frustrating that in order to reuse schema 
> components, you have to make them global.

You mentioned that you are frustrated by this fact.  Can you elaborate?
Is that databinding doesn't work as you expect, or some other problem?

Many members of the Schema WG believe that you should be able to create
local complex types and reuse them at that scope, assuming that's what
you're requesting.  (Note that the schema component model could allow
this construct, but the XML serialization syntax has no way to express
it.)  This belief (which I've held at times and may hold again) is IMO
based in the idea of OO scoping.  You have to remember that you can't
hide data in XML.  It's not that the idea is bad, it's that the two
systems are not isomorphic.

Webb Roberts wrote:
>The other big need for this that I've seen is when doing extensions of
>restrictions:  The restriction can't be an anonymous type; it has to
have a name.  So, even >though the final type (the extension) is the
only type you want to be used, both the 
>restriction and its extension are available for use.

If you can see a glimmer of reason in the above argument, then let me
push you a little further to see that the Schema REC defines "abstract"
to define types you don't want used directly.  Granted that's not the
same as not available, but "abstract" sends a strong signal that a type
is not to be used without refinement of some kind.

Best regards,
David Ezell









transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent