[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: [XML Schema 1.1] I respectfully recommend these changes to <assert> and <alternative>

From: Michael Kay <mike@saxonica.com>
Date: Wed, 13 May 2009 13:34:53 +0100
To: "'Costello, Roger L.'" <costello@mitre.org>, <xmlschema-dev@w3.org>
Message-ID: <210C0EC659894FB6A89B71EB6B5DEB5D@Sealion>
RE: [XML Schema 1.1] I respectfully recommend these changes to  <assert> and <alternative>
 
> BREAKS XPATH
> 
> (Paraphrasing) By allowing the XPath in an <assert> element 
> to reference ancestors, cousins, and siblings it will break XPath.

I don't recognize or recall the comment that you claim to be paraphrasing.
> 
> POOR PERFORMANCE
> 
> As I illustrate above, in XSLT the XPath expressions can 
> reference anywhere. It doesn't seem to impose an undue burden 
> on XSLT processors. So why would it impose an undue burden on 
> XML Schema validators?

I think this is based on an assumption that the performance requirement is
higher for validation than for transformation. One could question whether
this assumption is well-founded - it's obviously going to vary from one user
to another.
 
> Besides, even if it did, so what? Isn't the objective to make 
> things easier and better for the users, not the validator 
> implementors?

Well, it's users who benefit from improved performance, not implementors!
But I agree entirely. My argument for this feature is not based on
performance.

Michael Kay
http://www.saxonica.com/ 
Received on Wednesday, 13 May 2009 12:35:35 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.