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


advantages and disadvantages x path
Hi Mike,

> There is no right answer, but I'm personally happy with having the
> line where we've put it. It does mean that some XPath expressions
> sit rather uncomfortably inside XML attributes, and we've looked at
> proposals that address that, but I don't feel that balancing the
> length of the XPath attributes against the number of XSLT elements
> is the right way to make the judgement. You can always break up long
> expressions using variables or function calls.

Of course there's no right answer -- this is a matter of design, and
people have different opinions on design. Usually that arises from a
difference in the criteria on which they assess a design, which
usually arises from a difference in the goals that they have for
whatever they're designing.

My criterion is usability, and my goal is to learn and to teach
(preferably in that order). I don't think that the current design is
very usable. That's not just based on the length of attribute values
(though I don't think that's an unreasonable heuristic), it's based on
my estimate of the effort involved in learning two ways to do
everything and what the advantages and disadvantages are of those
choices. My opinion is also based on the problems I anticipate in the
maintainability of stylesheets -- I think that people will avoid
creating user-defined functions to do relatively simple operations,
and that given the lack of variable-binding expressions in XPath,
we'll therefore get a lot of code with a lot of repetition in it,
which is hard to maintain.

From previous discussions, I believe that your goals are eventual
convergence with XQuery and the ability to improve the performance of
Saxon. From that, your criteria are similarity with XQuery and
optimisability of XPath and possibly XSLT. Is that a fair summary?

Do you think that I'm wrong when I characterise the current XPath 2.0
design as hard for users to learn and use? Do you think that the
changes I've suggested would make it less usable? Or do you just think
that usability shouldn't be the main criteria on which the design is
assessed?

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.