Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: [XML Schema 1.1] I respectfully recommend these changes to

From: "Michael Kay" <mike@--------.--->
To: "'Costello, Roger L.'" <costello@-----.--->, <xmlschema-dev@--.--->
Date: 5/12/2009 2:10:00 PM
> 
> Wouldn't it be easier and better if the XPath was not 
> restricted and allowed us to factor in information, 
> regardless of where it is located in the tree?
> 

It's a conscious design decision that when you define what constitutes a
valid book, the definition should be context-independent: if it's a valid
book in one situation, then it remains valid in any other situation.

XSLT and XQuery rely on this context-independence - if a function returns a
valid book, or if you select a valid book by XPath navigation, then the
element can be used in any context that expects a valid book, without having
to be revalidated to ensure it's still valid in the new context.

Regards,

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




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