[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?


xpath sort
On Fri, May 10, 2002 at 01:57:47PM +0100, Jeni Tennison wrote:
> In XSLT+XPath 1.0, the two syntaxes are complementary.
[...]

> [In XSLT+XPath 2.0] There are roughly the same features in both: XSLT
> uses xsl:for-each, XPath uses for; XSLT uses xsl:choose, XPath uses if;
> XSLT uses xsl:sort, XPath uses sort-by();
[...]

> My argument is that it would be perfectly possible for XSLT and XPath
> 2.0 to work in a complementary way again. We could redraw the line
> where it was before, but allow a couple of extra shorthand features in
> the text-based syntax, namely conditional expressions and a simple
> mapping operator. But these should be shorthand features that are used
> for the most common kinds of looping and conditional expressions, not
> mirrors of the full functionality of XSLT.

[...]

Michael, Jonathan, et alia:
    as one of XML-DEV's lurking hundreds (thousands?) I think I should
    chip in with a "me too".  As far as I'm concerned, Jeni's observations
    in general, and this suggestion specifically, have been spot on.

    In particular, XPath 2.0/XSLT 2.0 should be fixing known problems and
    omissions in the 1.0 versions, without blowing out excessively.
    XPath is there to provide core functionality; other standards can
    extend on that, as required.

    For example, XSLT 1.0.  Based on XPath 1.0, it added an extra data type
    (the result tree fragment), an extra grammar production (the Pattern),
    and extra functions (document(), key(), ...) (document(), key(), etc.).
    
    In hindsight, keeping XPath 2.0/XSLT 2.0 clean and tight should
    have been a design goal.
    
    I suspect many of the lurking XML-DEVers (and XSL-LISTers, for that
    matter) are similarly in agreement with Jeni.  Silence doesn't
    necessarily mean apathy: there's simply been no need to add anything
    to what Jeni's said, other than a "me too" such as this.

    (Hmmm: should I also post this to public-qt-comments?)
    
Cheers,
Michael Fuller

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.