W3C home > Mailing lists > Public > www-xml-query-comments@w3.org > May 2002

Validate Expressions In XPath 2.0 and querying the PSVI in XQuery

From: Dare Obasanjo <dareo@microsoft.com>
Date: Fri, 17 May 2002 07:42:30 -0700
Message-ID: <8BD7226E07DDFF49AF5EF4030ACE0B7E06621C18@red-msg-06.redmond.corp.microsoft.com>
To: <public-qt-comments@w3.org>
Cc: <www-xml-query-comments@w3.org>
A few questions/statements about validate expressions and other things
 
1.) The semantics of validate { $x }[0] are very poorly specified especially with regard to how one obtains IN-SCOPE SCHEMA DEFINITIONS when there is no schema import mechanism described in the WD. 
 
2.) Considering that XPath is designed to be embedded in other XML technologies like the DOM or XSLT unlike XQuery, are a validate{ $x} operation as well as run time type identification (instance of) and casting (assert as, cast as, treat as) or complex error handling [2,3,4] really necessary? 
 
3.) Speaking of which exactly WHAT is the rationale behind both XPath 2.0 and XQuery 1.0 being strongly typed languages? Is the W3C assuming that people that don't use types when querying XML documents are second class citizens? 
 
4.) The XQuery and XPath data model do not give the ability to query over the entire PSVI[1], what is the reason the particular  supported subset was chosen? 
 
[0] http://www.w3.org/TR/xpath20/#id-validate
[1] http://www.w3.org/TR/query-datamodel/#IDASOVR
[2] http://www.w3.org/TR/xpath20/#xpath-issue-error-object
[3] http://www.w3.org/TR/xpath20/#xquery-general-errors
[4] http://www.w3.org/TR/xpath20/#xquery-try-catch-error 
Received on Friday, 17 May 2002 10:43:52 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 2 February 2007 00:13:05 GMT