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

Re: XPath 2.0 - how much of XQuery should it include?


Re:  XPath 2.0 - how much of XQuery should it include?
Hi David,

> So what does Xpath 2 do?
>
> Firstly it provides the bizarre => operator which is a restricted
> version of id(), then for all the new types it stresses the id()
> approach of inferring type information which might possibly be
> supplied by a suitable parser, rather than the approach that has
> proved far more robust, allowing the stylesheet to specify what
> types it wants to use for the content of certain elements.

To be fair, both XQuery and XSLT now have mechanisms for importing
schemas, so it's feasible for a stylesheet or query author to create
their own schema for the purposes of the query or stylesheet. This is
like using xsl:key, except that (a) it has to be specified in a
separate file and (b) you have to write it in XML Schema rather than
XQuery/XSLT.

There are still issues here: does the source document get validated
against this schema or the one that it declares? What if it's not
supposed to be validated against a particular schema, because it's
targetted at a secondary document? Do the users of XSLT really want to
have to learn XML Schema to take advantage of typing? Is XML Schema
the best language to use to express how to construct indexes of a
document, or is there a different formalism that's better oriented to
the requirements of XQuery or XSLT from a schema language? Should
XQuery and XSLT be tied to XML Schema at the expense of other schema
languages -- why can't you import a DTD to do the same thing, for
example?

I agree with the central point, though: the impression I have of XPath
2.0 is of a newly reinvented language that has been grudgingly forced
into backwards compatibility with XPath 1.0, rather than an
incremental development of existing XPath 1.0 functionality.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


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.