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

Re: Hello XQuery ... Goodbye XSLT?

xquery vs xslt
> >But in the comparison between XQuery and XSLT people are comparing the
> >non-XML textual representation of XQuery with XSLT.
> I actually think a keyword syntax for XSLT might be more accessible for many programmers.

There have actually been a number of candidates, but they seem to have acquired few enthusiasts. Perhaps this is because of the preprocessor problem - you want error messages to relate directly to the source you are editing.

The biggest conceptual hurdle faced by newcomers to XSLT (which can be a much bigger hurdle for novice programmers than for non-programmers) is the lack of procedural variables. XQuery of course shares this characteristic. The next hurdle is perhaps the use of template rules, which are not used in XQuery. You don't need to use them in XSLT either, though everyone will tell you that it's good practice. Recursion, discussed in recent messages on this thread, is needed only for more advanced applications, and again is used equally in both XSLT and XQuery. In fact the need for recursive programming is considerably reduced in XSLT 2.0 and XQuery 1.0 because of the availability of constructs such as "for" expressions. I do agree with the view that many people find recursion difficult to get to grips with - but then people once found the "set-at-a-time" approach of SQL equally difficult. It takes practice.

Michael Kay

Email provided by http://www.ntlhome.com/


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.
First Name
Last Name
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.