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

RE: XPath 1.5? (was RE: typing and markup)


RE:  XPath 1.5? (was RE:  typing and markup)
At 10:17 AM -0700 5/7/02, Jonathan Robie wrote:

>What behavior would you like XQuery and XPath to adopt that is 
>different from what is in the current Working Drafts? Can you 
>illustrate the advantages of this behavior with an example?
>

Here's just one:

         avg( input()//person/name )

You say you want this to fail. I say I want it to return NaN if any 
of the identified name elements contains a non-number and the actual 
average if they all do contain strings that can be parsed as numbers. 
Neither of us is right. Neither is wrong. We simply have different 
needs in our local environments. Tomorrow I may move to a different 
local environment with different needs.

I also have a use-case of teaching this stuff that requires it be 
simple and intelligible. Based on that, I strongly oppose systems 
that have 20 different ways to do the same thing, and systems that 
mangle multiple layers together instead of allowing them to be 
separated out and used independently. It makes my job more 
complicated.

 From my perspective, those who want typing need to demonstrate the 
use-cases. Looking at the XQuery use-cases document I don't see many 
there. Furthermore, I specifically reject the following use-case:

  1.7.4.3 Q3 "Select all elements using datatypes from "XML Schema: 
Part 2" datatypes"

That's wildly artificial. Are there any others? On a quick scan of 
the latest draft I don't see them, but maybe I missed some or I'm not 
up-to-date enough with the XQuery syntax to see where this is used. 
Section 1.10 seems to be all about complex types, not simple types.
-- 

+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo@m... | Writer/Programmer |
+-----------------------+------------------------+-------------------+
|          The XML Bible, 2nd Edition (Hungry Minds, 2001)           |
|             http://www.cafeconleche.org/books/bible2/              |
|   http://www.amazon.com/exec/obidos/ISBN=0764547607/cafeaulaitA/   |
+----------------------------------+---------------------------------+
|  Read Cafe au Lait for Java News:  http://www.cafeaulait.org/      |
|  Read Cafe con Leche for XML News: http://www.cafeconleche.org/    |
+----------------------------------+---------------------------------+

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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-2013 All Rights Reserved.