I have received several good comments in both email and directly on this blog regarding my XQuery vs. XSLT 1.0 post from a few days ago. I've been away from my computer for the last 24 hours so I only just got to approving the most recent comment from Simon St. Laurent. He brought out a good point of which I wanted to make a little more public and then extend a few thoughts from. His comment:
[UPDATE: Dimitre Novatchev has followed-up Simon's comments with a very good point in that he doesn't know of one single case in which an XSLT developer has stated they plan to skip over XSLT 2.0 and move directly to XQuery. For what its worth, neither have I >> well, until just now when Simon stated this to be his intention. While Simon's point is still valid for those who have the same feelings he does I wonder how many others who have gone through the rough-and-tumble of learning XSLT 1.0 plan to move to XQuery once it becomes more readily supported. Anyone care to speak out?]
I think you're over-reacting pretty strangely. A lot of people are looking to move directly from XSLT 1.0 to XQuery, and I'm not sure that an XSLT 2.0 to XQuery comparison would be useful for that large case.Apples to apples is great, if you actually care about both apples. If you don't, you don't.
I have a lot of respect for Simon and for his opinions so when Simon speaks I tend to listen. In thinking through his comment it really made a lot of sense. The problem that I have that caused such a strange reaction with the article that J. David Eisenberg posted was not that his points were not valid but that they completely ignored the fact that much of what he was refering to was no longer an issue when put into context with XSLT 2.0. But if your opinion is along the same line as Simon's then simply stating "while XSLT 2.0 is well on it way to a W3C recommendation XQuery brings several things to the development table that can make your development life a little less complicated, verbose, and extend from more of a procedural style syntax that a lot of us are more used to" will get absolutely nothing but applause from me.
To J. David Eisenberg's credit he has followed-up and it seems is taking the time to consider the comments made, working through them with a good attitude. Thats always a good thing to see so I think its best at this point that I simply let things be and hope that the attention thus far has been enough to help refocus the ideas presented into proper context. Armed with proper positioning and if you are one in whom is looking forward to working with XQuery as an XSLT 1.0 replacement, making no plans to use XSLT 2.0 it seems then you will be able to walk away with some good information to draw from.
TrackBack URL for this entry:
http://www.xsltblog.com/xslt-blog-mt/mt-tb.cgi/719
Listed below are links to weblogs that reference Update on "XQuery 1.0 vs. XSLT 1.0" post..:
» free tax software from free tax software
free tax software [Read More]
Tracked on March 28, 2006 10:07 PM
» motivationalquotes from motivationalquotes
motivationalquotes [Read More]
Tracked on April 2, 2006 10:27 PM
» cute quotes from cute quotes
cute quotes [Read More]
Tracked on April 2, 2006 10:27 PM
I’m duplicating a comment from the earlier thread, but it seems worth repeating here to explain why I think an XSLT 1.0/XQuery comparison may well be sensible to much of the world, if not to XSLT specialists.
——————————
I don’t expect ‘proper’ XSLT developers to be leaping from XSLT 1.0 to XQuery. Once you’ve made the investment in learning XSLT 1.0 thoroughly, you may as well stay in XSLT. (For some group of developers, the XSLT approach is preferable to start with, but everything I’ve heard suggests that group is a distinct minority in the programming world.)
The group that I expect to make the leap from XSLT 1.0 to XQuery contains developers who were never particularly comfortable in XSLT 1.0. A lot of people bounce off of XSLT completely, or use it on the edges of their projects as lightly as possible and only when it’s clearly easier than the alternative.
For a lot of those folks, XQuery looks like a better answer. I’m no fan of XQuery (or XSLT 2.0 for that matter), but I’ve heard a fair amount of this excitement from developers looking forward to working with a more familiar syntax.
——————————
Yeah, I can completely see your point from this perspective Simon. There are a lot of people who simply do not get along with the XSLT way of thinking. You know to me the funny thing is that XQuery and XSLT are built on top of the exact same data model and, like XSLT 2.0, XQuery uses a functional-programming-like foundation. Futhermore the real work-horse behind all of this is XPath 2.0 so in reality it doesn’t really matter which you use you are going to get pretty much the same functionality and results, XSLT 2.0 having a slight edge in a couple of areas.
So, in reality, the benefit in Syntax is really only ever so slight as developers will still need to learn the functional way of thinking to truly harness the power of XQuery. But perception is a powerful thing. What one perceives to be easier a lot of the times is easier even if from a technical level theres not a whole lot of difference.
Thanks again for your comments!
<M:D/>