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

RE: XSLT and XQuery


RE:  XSLT and XQuery
> What I am interested in hearing about, but what noone has yet
> been able to
> explain, is whether:
>
> 1) there are more fundamental differences between XSLT and
> XQuery (beyond surface syntax)
> 2) and if so, why I should care
>
What counts as fundamental? At one level, the tasks are the same: take a set
of documents as input and produce a [set of] documents as output.

Within this there are many differences of emphasis, some based on user
requirements and usage scenarios, others based on the traditions and
priorities of the people doing the development work. XSLT's original usage
scenario was styling of documents for presentation. Hence it's stronger on
documents than on data, it's designed to be tolerant to variations in the
structure of the documents and to errors in the stylesheet, it's typically
used to process a small number of input documents. XQuery's primary usage
scenario is searching XML databases, hence it's stronger on data than on
documents, and it's designed to enable a lot of static optimization and
type-checking.

It would have been nicer if we could have come up with a single language
suited to both tasks, rather than two languages with a 70% overlap in
functionality; but I don't think it's the end of the world that we haven't
achieved that. In fact, a bit of friendly competition sometimes does no harm
and can be in the users' interest in the long run.

Mike Kay



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.