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

RE: RE: xquery v1.1 tracking xquery x was Re: RE: De

  • From: "Michael Kay" <mike@saxonica.com>
  • To: "'Dave Pawson'" <davep@dpawson.co.uk>,<xml-dev@l...>
  • Date: Thu, 15 Apr 2010 08:30:30 +0100

RE:  RE: xquery v1.1 tracking xquery x was Re:  RE: De
> Noting this as following the fp thread from David Lee, 
> perhaps James Clark was right in using Scheme for DSSSL?
> Given (a b  c) it is easy to find out what each term is with 
> the language rules.  
> XML follows that idea as Michael shows. 
> 
> Lesson there somewhere, that xquery failed to learn.

The use of context to disambiguate symbols in XPath 1.0 worked well enough
in a language of that size, but it's a nightmare in a language as big as
XQuery (especially with its extensions to Updates, Free Text, and Scripting,
not to mention vendor extensions). I think some people on the XQuery WG
realized this was going to be a problem from the start, but there was a lot
of pressure to make the language fully upwards compatible with XPath 1.0.
It's still hard to know whether the right decision was made - most users
aren't going to be troubled by the problems, it's mainly a problem for the
spec-writers and implementors. For users, the only impact is occasional
puzzlement that you have to write "delete node x" rather than just "delete
x".

Interestingly, some of the ambiguities in XPath 1.0 weren't noticed until
years later - for example there are two ways of parsing (/ and /*) and XPath
1.0 doesn't say which one to choose. XPath 2.0 clarifies that "and" is to be
read as child::and, that is, an axis step rather than an operator.

Discussions on finer points of syntax take an inordinate length of time on
the XQuery WG. In the XSLT WG, by contrast, there are rarely any such issues
(apart from the choice of names). So however tedious it might be for users,
the use of XML syntax makes life much easier for the language developers.

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay 



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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.