Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: Permit (greedy) conflicting wildcards

From: "Michael Kay" <mike@--------.--->
To: <noah_mendelsohn@--.---.--->
Date: 4/10/2007 10:34:00 PM
> > So in this sense you're right: I'm trying to find rules 
> that allow the 
> > schema as a whole to be extended while retaining confidence 
> that the 
> > assumptions I made at query compile time relating to type- 
> safety are 
> > still true when the query is executed. I'm trying to do this by 
> > freezing the parts of the schema on which compiled queries depend.
> 
> Unless I'm misunderstanding, <xs:redefine> is completely 
> incompatible with this model

Not completely incompatible: you can use xs:redefine to redefine a component
so long as you haven't yet used the component. Once you've used the
component, for example to do static type inferencing as described in the
XQuery formal semantics, you'd better not allow the component to be
redefined. (That's just the same as not allowing redefinition in the middle
of a validation episode).

>I'm not sure why something like a Not In Schema wildcard is more than a
minor additional compliction

Perhaps it is just a "minor additional complication", and if the XQuery type
system can cope with the horrors of nillability then it can probably cope
with this too. But I'm not yet convinced it's a minor complication that we
actually need. I think that asking users to say "anything except X, Y and Z"
is cleaner than allowing them to say "anything so long as there's no
[global?] element declaration for it in the schema" (even if it's more
verbose) because you've then got a meaning that doesn't change with the
direction of the wind.

Michael Kay
http://www.saxonica.com/



From lists@n... Thu Apr 12 09:35:32 2007
Received: from lisa.w3.org


transparent
Print
Mail
Like It
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