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

RE: XML support in browsers?

  • From: "Michael Kay" <mike@saxonica.com>
  • To: "'max toro q'" <maxtoroq@gmail.com>,<xml-dev@l...>
  • Date: Sat, 13 Jun 2009 10:03:01 +0100

RE:  XML support in browsers?
 > Why do people despise XSLT so much?
 
Well, as I said before, there is certainly a tendency for people to either love it or hate it.
 
I think the people who get on well with XSLT are either:
 
* non-programmers who use it as a simple templating language and don't attempt any serious structural or algorithmic transformations: they like the fact that it doesn't feel like programming
 
* programmers with a sufficiently deep understanding of their craft to appreciate the semantic power of the language and not be fazed by recursion, rule-based programming, or quirky syntax
 
The people who don't get on well with it are programmers (and script kiddies) who think they can approach it as "just another scripting language" that will behave like the previous language they used and that can be learnt by trial and error without first studying the concepts. Sometimes they are put off by the surface syntax and the verbosity (especially in the case of XSLT 1.0, and especially if you try to use it without understanding template rules), sometimes they are put off because they just can't get to grips with rule-based programming (they like to be "in control", which means writing imperative code), sometimes they can't cope with the functional nature of the language (their mental model of programming is based on putting values in memory locations) and in particular with recursion. Another factor that causes a lot of frustration is debugging: you don't tend to get much help from the system either at compile-time or at run-time when you get your path expressions wrong (and schema-aware programming, which largely solves this problem, is typically used only by those who are already experts and don't need convincing). Another factor (largely solved by XSLT 2.0) is that the function library is so sparse compared with other languages.
 

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.